Daniele Varrazzo
Account owner
Daniele Varrazzo's latest activity
Thursday, February 06 2014
-
- State changed from new to open
I would say no: users of that property don't expect an extra query to be performed to check the connection is still up. For one, it would become a blocking oper...
Monday, February 03 2014
-
- State changed from new to open
As per discussion on github,
Json.__str__should returngetquoted()as many adapters already do. Also note:1) other adapters should be checked too (range?)
2) ...
Tuesday, January 14 2014
-
-
Daniele Varrazzo commented at 6:01 PMWell, even less, only
register_default_json()exist :) That's because I've expected people wanting to customize the way it is parsed more often than with other ... -
Daniele Varrazzo commented at 5:26 PM@fog: I was going to give Oleg your suggestion, and I just realized that
psycopg2.extras.register_default_json(loads=lambda x: x)works as well but is much more... -
Daniele Varrazzo commented at 5:22 PMYes. The easiest is:
>>> psycopg2.extras.register_default_json(loads=lambda x: x) >>> cur.execute("select %s::json", [Json({u'Url': u'€'})]) >>> cur.fetchone()... -
Daniele Varrazzo commented at 3:38 PMI'm using psycopg through https://github.com/coleifer/peewee ORM, but it doesn't mess with the data. The column in question is defined as a simple text field. ...
-
Daniele Varrazzo commented at 11:15 AMPsycopg only forwards what received by postgres. How are you generating this data?
From a quick test postgres can't generate "wrong" data:
piro=# select '{''Ur...
Tuesday, January 07 2014
-
Daniele Varrazzo commented at 5:12 PMA script to reproduce the issue would be preferred. A patch to fix the issue would be even better accepted, above all if checking the issue implies recompiling ...
-
- Milestone set to psycopg3
About problem 1: if the query contains no placeholder I'd argue it should also allow an empty list as argument (it is a sequence with the same number of item as...