diff options
author | Federico Di Gregorio <fog@initd.org> | 2004-10-19 03:17:12 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2004-10-19 03:17:12 +0000 |
commit | c904d97f696a665958c2cc43333d09c0e6357577 (patch) | |
tree | de88cb1cb6a48230f79bc0b532835d26a33660e9 /sandbox/test.py | |
download | psycopg2-c904d97f696a665958c2cc43333d09c0e6357577.tar.gz |
Initial psycopg 2 import after SVN crash.
Diffstat (limited to 'sandbox/test.py')
-rw-r--r-- | sandbox/test.py | 12 |
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() |