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

index 42527e99e992ea88443832148a35adc96b24e1e2..2cbbf844844971c122e57897ede6505fb78a3503 100644 (file)
@@ -2152,8 +2152,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