FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Regexp cannot handle NULL text · Issue #353 · sqlitebrowser/sqlitebrowser · GitHub

Regexp cannot handle NULL text #353

Description

http://stackoverflow.com/questions/30643061/sqlite-db-browser-invalid-operand-for-regexp

I use DB Browser for SQLite version 3.6.0; SQLite Version 3.8.9. If I use regexp on a nullable column revision then invalid operand error is happened.

    SELECT brand,revision FROM TDevice WHERE TDevice.revision regexp '^ASUS$';

Below is the schema:

    CREATE TABLE `TDevice` (
    `id`    INTEGER NOT NULL,
    `brand` varchar(128) NOT NULL,
    `model` varchar(128) NOT NULL,
    `revision`  TEXT,
    PRIMARY KEY(id)
    );

After I replaced the NULL revision with empty string, then this issue fixed.

    UPDATE TDevice SET revision='' WHERE revision IS NULL

I assume regexp should behave as LIKE operator, because LIKE operator can accept NULL text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL