Daniele Varrazzo
Account owner
Daniele Varrazzo's latest activity
Tuesday, May 03 2011
-
- Tag set to adapt, decimal
The same bug was reported for mod_python a few years ago and was fixed, so I don't know why it's bugging again - or it is something similar.
The problem is that...
-
- Tag set to binary, unicode
- State changed from new to invalid
No, it's not reasonable for unicode to be interpreted as a binary string. This is the entire point for which there are separate unicode and string object (or st...
Sunday, April 10 2011
-
- State changed from new to resolved
Hello,
the bug has been reported a few days ago in the mailing list
http://archives.postgresql.org/psycopg/2011-04/msg00002.php
The problem has been fixed: the ...
Tuesday, April 05 2011
-
Daniele Varrazzo commented at 7:46 AMNo the behavior is perfectly known and we consider it correct. When you pass a date object to psycopg it creates a postgres date, not an unknown literal, by add...
Sunday, April 03 2011
-
- State changed from new to invalid
PostgreSQL is now (since before 2.4) more strict about types. You are passing a Python date to psycopg, so psycopg is passing a date to postgres. There is no fu...
Monday, March 28 2011
-
Daniele Varrazzo commented at 1:13 PMBy the way, your analysis was correct: the check str[0] is wrong when len == 0.
The libpq allocates at least one byte to avoid a non portable malloc(0). I was i...
Saturday, March 26 2011
-
- State changed from open to resolved
I'm merging the patch. However for me (on ubuntu) the compiled library doesn't work:
Traceback (most recent call last): File "<string>", line 1, in <module> ...
-
- State changed from new to resolved
Just pushed our own bytea hex parser, there is no more need of a specific libpq version on the client.
I've added a specific test for '\x' to be parsed correctl...
Wednesday, March 16 2011
-
Daniele Varrazzo commented at 4:36 PMThank you for the patch, but I think a safer approach would be to ditch entirely the libpq unescape and deal with the hex format ourselves - it is an easy to pa...
-
- Tag changed from rel-2.4 to bytea, rel-2.4
I don't think the libpq can retain data across different invocations of a python process: its state should be cleaned when the process terminates.
It still smel...