-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Just a short note to inform you that sqlite-parser chokes whenever it encounters a table when one or more fields contains the string 'check'.
Given this CREATE STATEMENT:
CREATE TABLE queue_items_results_machinedata (
createdby TEXT,
uploaded INTEGER DEFAULT 0,
enabled INTEGER DEFAULT 0,
needsupervisor INTEGER DEFAULT 0,
checkedsupervisor INTEGER DEFAULT 0,
markedfordeletion INTEGER DEFAULT 0,
queueID TEXT,
systemname TEXT,
entityname TEXT,
createddate INTEGER DEFAULT 0,
mimetype TEXT,
source TEXT,
content TEXT,
match TEXT,
flags TEXT DEFAULT '{}',
contextkey TEXT,
size INTEGER DEFAULT 0,
picture INTEGER DEFAULT 0,
checked INTEGER DEFAULT 0,
rawdata TEXT,
crossout_json TEXT,
crossout_imagedata TEXT
, deleted INTEGER DEFAULT '0')
(as returned from SQLite3)
it chokes with an exception such as:
Expect ')': 'ed INTEGER DEFAULT 0, rawdata TE...' FROM 'CREATE TABLE queue_items_results_machinedata ( createdby TEXT, uploaded INTEGER DEFAULT 0, enabled INTEGER DEFAULT 0, markedfordeletion INTEGER DEFAULT 0, queueID TEXT, systemname TEXT, entityname TEXT, createddate INTEGER DEFAULT 0, mimetype TEXT, source TEXT, content TEXT, match TEXT, flags TEXT DEFAULT '{}', contextkey TEXT, size INTEGER DEFAULT 0, picture INTEGER DEFAULT 0, checked INTEGER DEFAULT 0, rawdata TEXT, crossout_json TEXT, crossout_imagedata TEXT )'