Commit 9cd0036a authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Use native SQLite types

parent f36dddaf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment