From 71028a81f51d9a5766607a6ff286f5d46836e607 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 24 Feb 2012 09:55:13 +0000 Subject: [PATCH] fix for proper retrieval of columns in SQLite --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 94320de31..36dd06f14 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2355,7 +2355,7 @@ def parseSqliteTableSchema(value): table = {} columns = {} - for match in re.finditer(getCompiledRegex(r"(\w+) ([A-Z]+)[,\r\n]"), value): + for match in re.finditer(getCompiledRegex(r"(\w+)\s+(TEXT|NUMERIC|INTEGER|REAL|NONE)"), value): columns[match.group(1)] = match.group(2) table[conf.tbl] = columns