From 1ae302ff76adcb188dad5383e73c5ade158ffd8a Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Fri, 9 Nov 2012 21:55:15 -0500 Subject: Stop insanity with timestamps still need to check the function which imports the old database --- createdb.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'createdb.py') diff --git a/createdb.py b/createdb.py index 7f50807..7ec9cd0 100644 --- a/createdb.py +++ b/createdb.py @@ -9,9 +9,7 @@ if __name__ == "__main__": required=True) args = arg_parser.parse_args() - conn = sqlite3.connect(args.database) - c = conn.cursor() + conn = sqlite3.connect(args.database, detect_types=sqlite3.PARSE_DECLTYPES) schema = open(args.schema) - c.executescript( schema.read() ) - conn.commit() - c.close() + conn.executescript( schema.read() ) + conn.close() -- cgit v1.2.3-70-g09d2