1
1
mirror of https://github.com/psycopg/psycopg2.git synced 2025-02-28 06:20:32 +03:00
psycopg2/sandbox/textfloat.py

10 lines
156 B
Python
Raw Normal View History

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)