Skip to content

Cannot view table which uses constraint CHECK ... NOT LIKE ... #40

@dgeelen

Description

@dgeelen

This is similar to issue #34, except using the construction NOT LIKE. Please note that using a regular LIKE, i.e. without negation, does work.

Example:

CREATE TABLE not_working(
    value TEXT CONSTRAINT "value" CHECK(value NOT LIKE "prefix%")
);

CREATE TABLE working(
    value TEXT CONSTRAINT "value" CHECK(value LIKE "prefix%")
);

INSERT INTO not_working( value ) VALUES( "a" );
INSERT INTO    working( value ) VALUES( "prefixa" );
-- INSERT INTO NotWorking( value ) VALUES( "prefixb" );
-- INSERT INTO    Working( value ) VALUES( "b" );

I'm using the test build posted in the comment by @justinclift in issue #34 on Windows 7.

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