Skip to content

Chokes on fields whose name contains 'check' #3

@henrywood

Description

@henrywood

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 )'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions