summaryrefslogtreecommitdiff
path: root/sandbox/array.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/array.py')
-rw-r--r--sandbox/array.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/array.py b/sandbox/array.py
index b9975a0..af09140 100644
--- a/sandbox/array.py
+++ b/sandbox/array.py
@@ -9,7 +9,9 @@ print curs.fetchone()
curs.execute("SELECT ARRAY['1','2','3'] AS foo")
print curs.fetchone()
-curs.execute("""SELECT ARRAY['','"',''] AS foo""")
+curs.execute("""SELECT ARRAY[',','"','\\\\'] AS foo""")
d = curs.fetchone()
print d, '->', d[0][0], d[0][1], d[0][2]
+curs.execute("SELECT ARRAY[ARRAY[1,2],ARRAY[3,4]] AS foo")
+print curs.fetchone()