summaryrefslogtreecommitdiff
path: root/sandbox/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/test.py')
-rw-r--r--sandbox/test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sandbox/test.py b/sandbox/test.py
new file mode 100644
index 0000000..5704f73
--- /dev/null
+++ b/sandbox/test.py
@@ -0,0 +1,12 @@
+import datetime
+import psycopg
+
+#d = datetime.timedelta(12, 100, 9876)
+#print d.days, d.seconds, d.microseconds
+#print psycopg.adapt(d).getquoted()
+
+o = psycopg.connect("dbname=test")
+c = o.cursor()
+c.execute("SELECT 1.0 AS foo")
+print c.fetchmany(2)
+print c.fetchall()