mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 18:33:44 +03:00
e335d6d223
Many editors automatically trim whitespace on save. By trimming all files in one go, makes future diffs cleaner without extraneous whitespace changes.
9 lines
155 B
Python
9 lines
155 B
Python
import gtk
|
|
import psycopg2
|
|
|
|
o = psycopg2.connect("dbname=test")
|
|
c = o.cursor()
|
|
c.execute("SELECT 1.23::float AS foo")
|
|
x = c.fetchone()[0]
|
|
print x, type(x)
|