[PyGreSQL] Patch to add read support for integer arrays
Christoph Zwerschke
cito at online.de
Fri Mar 21 17:11:21 EDT 2008
D'Arcy J.M. Cain schrieb:
> Finally, since this may break existing code, what is everyone's opinion
> on doing this in the first place? Would it be OK if we went to a major
> release?
Generally, I like the idea of converting arrays to Python lists. I think
Psycopg2 does it already. However, if we do it, then it should not only
work for integers, but for all data types. Also, I would not recommend
using eval() because it could open a possibility for some evil kind of
SQL hacking. We should use some recursive evaluation function instead.
-- Christoph
More information about the PyGreSQL
mailing list