-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugConfirmed bugs or reports that are very likely to be bugs.Confirmed bugs or reports that are very likely to be bugs.
Milestone
Description
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
Labels
bugConfirmed bugs or reports that are very likely to be bugs.Confirmed bugs or reports that are very likely to be bugs.