Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f0397b99538c8dc22ab7cc58e5f6194c47dbfccc authored by Georg Brandl on 30 May 2012, 20:04:31 UTC
Bump version to 3.3.0a4.
Tip revision: f0397b9
parse_colnames.py
import sqlite3
import datetime

con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
cur = con.cursor()
cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
dt = cur.fetchone()[0]
print(dt, type(dt))
back to top