Re: [GENERAL] Bizarre problem: Python stored procedure using protocol buffers not working

2010-05-16 Thread Peter Eisentraut
On lör, 2010-05-15 at 22:50 -0700, Yang Zhang wrote: On Sat, May 15, 2010 at 10:20 PM, Peter Eisentraut pete...@gmx.net wrote: You have null bytes in the data value, which is not supported very well in PL/Python. Try the 9.0 beta version; it should be fixed there. Thanks. Out of

[GENERAL] Bizarre problem: Python stored procedure using protocol buffers not working

2010-05-15 Thread Yang Zhang
I have a table containing a protocol buffer (pb) attribute, and a stored procedure foo that tries to parse it and return the parsed value as a human-friendly string (not actual application code, just a minimal test case to demonstrate the problem). But running foo gives me nothing back. yang=# \d

Re: [GENERAL] Bizarre problem: Python stored procedure using protocol buffers not working

2010-05-15 Thread Peter Eisentraut
On lör, 2010-05-15 at 15:40 -0700, Yang Zhang wrote: yang=# select * from qapb; id | pb + 0 | \012\006hello?\020\000\030\000 \000*\014\012\006hello!\020\000\030\000 (1 row)

Re: [GENERAL] Bizarre problem: Python stored procedure using protocol buffers not working

2010-05-15 Thread Yang Zhang
On Sat, May 15, 2010 at 10:20 PM, Peter Eisentraut pete...@gmx.net wrote: You have null bytes in the data value, which is not supported very well in PL/Python.  Try the 9.0 beta version; it should be fixed there. Thanks. Out of curiosity, is this an issue just with PL/Python or with other