Hi,

I figured pgdb.py (version 1.33) didn't have support to read int2[] and int4[] types, so I added support for it. I don't know if this was in the CVS/SVN tree already.

When reading data, int2[] and int4[] are now converted to a list containing ints, instead of passing them as str, i.e. '{ 1, 2 }' to the program.

I don't know if this is the correct way to do this.
Maybe all of the array types should be handled at once?

--------
109a110,114
>               elif typ == INTARRAY:
> tmp = value.replace("{", "").replace("}", "").split(",")
>                       value=[]
>                       for v in tmp:
>                               value.append(int(v))
413a419
> INTARRAY = pgdbType('_int2', '_int4')
--------

Best Regards,
Mikko Korkalo

Attachment: pgdb.intarray.patch.bz2
Description: application/bzip

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to