Hello guys
I do following interactions with DB:
In [48]: conn = psycopg2.connect("dbname=... user=... password=...")
In [49]: cur = conn.cursor()
In [50]: cur.execute("select (1, 2)")
In [51]: cur.fetchone()
Out[51]: ('(1,2)',)
Is it possible to get that tuple parsed into python tuple in the same way
array works?
In [55]: cur.execute("select array[1, 2]")
In [56]: cur.fetchone()
Out[56]: ([1, 2],)
Looks like that can be done if I register composite type for that tuple.
But I would like it to work with any tuple.
Please assist.
Thanks in advance!
Dmytro