]> granicus.if.org Git - python/commitdiff
Use native SQLite types
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Sep 2006 14:03:19 +0000 (14:03 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 8 Sep 2006 14:03:19 +0000 (14:03 +0000)
Doc/lib/libsqlite3.tex

index 7517f6b970c9ae775b5dbc8218d8d77ca9436a67..a05f5af5201cdedbf209a015988b0acef0df22e5 100644 (file)
@@ -36,8 +36,8 @@ c = conn.cursor()
 
 # Create table
 c.execute('''create table stocks
-(date timestamp, trans varchar, symbol varchar,
- qty decimal, price decimal)''')
+(date text, trans text, symbol text,
+ qty real, price real)''')
 
 # Insert a row of data
 c.execute("""insert into stocks