Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
be1d437e
Commit
be1d437e
authored
Sep 25, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forget to update the real source of the regression test results after
message editing.
parent
feb4f44d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
src/test/regress/output/constraints.source
src/test/regress/output/constraints.source
+25
-25
No files found.
src/test/regress/output/constraints.source
View file @
be1d437e
...
@@ -62,12 +62,12 @@ CREATE TABLE CHECK_TBL (x int,
...
@@ -62,12 +62,12 @@ CREATE TABLE CHECK_TBL (x int,
INSERT INTO CHECK_TBL VALUES (5);
INSERT INTO CHECK_TBL VALUES (5);
INSERT INTO CHECK_TBL VALUES (4);
INSERT INTO CHECK_TBL VALUES (4);
INSERT INTO CHECK_TBL VALUES (3);
INSERT INTO CHECK_TBL VALUES (3);
ERROR: new row for relation "check_tbl" violates
CHECK
constraint "check_con"
ERROR: new row for relation "check_tbl" violates
check
constraint "check_con"
INSERT INTO CHECK_TBL VALUES (2);
INSERT INTO CHECK_TBL VALUES (2);
ERROR: new row for relation "check_tbl" violates
CHECK
constraint "check_con"
ERROR: new row for relation "check_tbl" violates
check
constraint "check_con"
INSERT INTO CHECK_TBL VALUES (6);
INSERT INTO CHECK_TBL VALUES (6);
INSERT INTO CHECK_TBL VALUES (1);
INSERT INTO CHECK_TBL VALUES (1);
ERROR: new row for relation "check_tbl" violates
CHECK
constraint "check_con"
ERROR: new row for relation "check_tbl" violates
check
constraint "check_con"
SELECT '' AS three, * FROM CHECK_TBL;
SELECT '' AS three, * FROM CHECK_TBL;
three | x
three | x
-------+---
-------+---
...
@@ -82,13 +82,13 @@ CREATE TABLE CHECK2_TBL (x int, y text, z int,
...
@@ -82,13 +82,13 @@ CREATE TABLE CHECK2_TBL (x int, y text, z int,
CHECK (x > 3 and y <> 'check failed' and z < 8));
CHECK (x > 3 and y <> 'check failed' and z < 8));
INSERT INTO CHECK2_TBL VALUES (4, 'check ok', -2);
INSERT INTO CHECK2_TBL VALUES (4, 'check ok', -2);
INSERT INTO CHECK2_TBL VALUES (1, 'x check failed', -2);
INSERT INTO CHECK2_TBL VALUES (1, 'x check failed', -2);
ERROR: new row for relation "check2_tbl" violates
CHECK
constraint "sequence_con"
ERROR: new row for relation "check2_tbl" violates
check
constraint "sequence_con"
INSERT INTO CHECK2_TBL VALUES (5, 'z check failed', 10);
INSERT INTO CHECK2_TBL VALUES (5, 'z check failed', 10);
ERROR: new row for relation "check2_tbl" violates
CHECK
constraint "sequence_con"
ERROR: new row for relation "check2_tbl" violates
check
constraint "sequence_con"
INSERT INTO CHECK2_TBL VALUES (0, 'check failed', -2);
INSERT INTO CHECK2_TBL VALUES (0, 'check failed', -2);
ERROR: new row for relation "check2_tbl" violates
CHECK
constraint "sequence_con"
ERROR: new row for relation "check2_tbl" violates
check
constraint "sequence_con"
INSERT INTO CHECK2_TBL VALUES (6, 'check failed', 11);
INSERT INTO CHECK2_TBL VALUES (6, 'check failed', 11);
ERROR: new row for relation "check2_tbl" violates
CHECK
constraint "sequence_con"
ERROR: new row for relation "check2_tbl" violates
check
constraint "sequence_con"
INSERT INTO CHECK2_TBL VALUES (7, 'check ok', 7);
INSERT INTO CHECK2_TBL VALUES (7, 'check ok', 7);
SELECT '' AS two, * from CHECK2_TBL;
SELECT '' AS two, * from CHECK2_TBL;
two | x | y | z
two | x | y | z
...
@@ -107,7 +107,7 @@ CREATE TABLE INSERT_TBL (x INT DEFAULT nextval('insert_seq'),
...
@@ -107,7 +107,7 @@ CREATE TABLE INSERT_TBL (x INT DEFAULT nextval('insert_seq'),
CONSTRAINT INSERT_CON CHECK (x >= 3 AND y <> 'check failed' AND x < 8),
CONSTRAINT INSERT_CON CHECK (x >= 3 AND y <> 'check failed' AND x < 8),
CHECK (x + z = 0));
CHECK (x + z = 0));
INSERT INTO INSERT_TBL(x,z) VALUES (2, -2);
INSERT INTO INSERT_TBL(x,z) VALUES (2, -2);
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
SELECT '' AS zero, * FROM INSERT_TBL;
SELECT '' AS zero, * FROM INSERT_TBL;
zero | x | y | z
zero | x | y | z
------+---+---+---
------+---+---+---
...
@@ -120,13 +120,13 @@ SELECT 'one' AS one, nextval('insert_seq');
...
@@ -120,13 +120,13 @@ SELECT 'one' AS one, nextval('insert_seq');
(1 row)
(1 row)
INSERT INTO INSERT_TBL(y) VALUES ('Y');
INSERT INTO INSERT_TBL(y) VALUES ('Y');
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
INSERT INTO INSERT_TBL(y) VALUES ('Y');
INSERT INTO INSERT_TBL(y) VALUES ('Y');
INSERT INTO INSERT_TBL(x,z) VALUES (1, -2);
INSERT INTO INSERT_TBL(x,z) VALUES (1, -2);
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "$1"
ERROR: new row for relation "insert_tbl" violates
check
constraint "$1"
INSERT INTO INSERT_TBL(z,x) VALUES (-7, 7);
INSERT INTO INSERT_TBL(z,x) VALUES (-7, 7);
INSERT INTO INSERT_TBL VALUES (5, 'check failed', -5);
INSERT INTO INSERT_TBL VALUES (5, 'check failed', -5);
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
INSERT INTO INSERT_TBL VALUES (7, '!check failed', -7);
INSERT INTO INSERT_TBL VALUES (7, '!check failed', -7);
INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
SELECT '' AS four, * FROM INSERT_TBL;
SELECT '' AS four, * FROM INSERT_TBL;
...
@@ -139,9 +139,9 @@ SELECT '' AS four, * FROM INSERT_TBL;
...
@@ -139,9 +139,9 @@ SELECT '' AS four, * FROM INSERT_TBL;
(4 rows)
(4 rows)
INSERT INTO INSERT_TBL(y,z) VALUES ('check failed', 4);
INSERT INTO INSERT_TBL(y,z) VALUES ('check failed', 4);
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "$1"
ERROR: new row for relation "insert_tbl" violates
check
constraint "$1"
INSERT INTO INSERT_TBL(x,y) VALUES (5, 'check failed');
INSERT INTO INSERT_TBL(x,y) VALUES (5, 'check failed');
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
INSERT INTO INSERT_TBL(x,y) VALUES (5, '!check failed');
INSERT INTO INSERT_TBL(x,y) VALUES (5, '!check failed');
INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
SELECT '' AS six, * FROM INSERT_TBL;
SELECT '' AS six, * FROM INSERT_TBL;
...
@@ -162,7 +162,7 @@ SELECT 'seven' AS one, nextval('insert_seq');
...
@@ -162,7 +162,7 @@ SELECT 'seven' AS one, nextval('insert_seq');
(1 row)
(1 row)
INSERT INTO INSERT_TBL(y) VALUES ('Y');
INSERT INTO INSERT_TBL(y) VALUES ('Y');
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
SELECT 'eight' AS one, currval('insert_seq');
SELECT 'eight' AS one, currval('insert_seq');
one | currval
one | currval
-------+---------
-------+---------
...
@@ -193,11 +193,11 @@ CREATE TABLE INSERT_CHILD (cx INT default 42,
...
@@ -193,11 +193,11 @@ CREATE TABLE INSERT_CHILD (cx INT default 42,
INHERITS (INSERT_TBL);
INHERITS (INSERT_TBL);
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,11);
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,11);
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,6);
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,6);
ERROR: new row for relation "insert_child" violates
CHECK
constraint "insert_child_cy"
ERROR: new row for relation "insert_child" violates
check
constraint "insert_child_cy"
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (6,-7,7);
INSERT INTO INSERT_CHILD(x,z,cy) VALUES (6,-7,7);
ERROR: new row for relation "insert_child" violates
CHECK
constraint "$1"
ERROR: new row for relation "insert_child" violates
check
constraint "$1"
INSERT INTO INSERT_CHILD(x,y,z,cy) VALUES (6,'check failed',-6,7);
INSERT INTO INSERT_CHILD(x,y,z,cy) VALUES (6,'check failed',-6,7);
ERROR: new row for relation "insert_child" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_child" violates
check
constraint "insert_con"
SELECT * FROM INSERT_CHILD;
SELECT * FROM INSERT_CHILD;
x | y | z | cx | cy
x | y | z | cx | cy
---+--------+----+----+----
---+--------+----+----+----
...
@@ -227,7 +227,7 @@ SELECT '' AS three, * FROM INSERT_TBL;
...
@@ -227,7 +227,7 @@ SELECT '' AS three, * FROM INSERT_TBL;
INSERT INTO INSERT_TBL SELECT * FROM tmp WHERE yd = 'try again';
INSERT INTO INSERT_TBL SELECT * FROM tmp WHERE yd = 'try again';
INSERT INTO INSERT_TBL(y,z) SELECT yd, -7 FROM tmp WHERE yd = 'try again';
INSERT INTO INSERT_TBL(y,z) SELECT yd, -7 FROM tmp WHERE yd = 'try again';
INSERT INTO INSERT_TBL(y,z) SELECT yd, -8 FROM tmp WHERE yd = 'try again';
INSERT INTO INSERT_TBL(y,z) SELECT yd, -8 FROM tmp WHERE yd = 'try again';
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
SELECT '' AS four, * FROM INSERT_TBL;
SELECT '' AS four, * FROM INSERT_TBL;
four | x | y | z
four | x | y | z
------+---+---------------+----
------+---+---------------+----
...
@@ -246,7 +246,7 @@ UPDATE INSERT_TBL SET x = NULL WHERE x = 5;
...
@@ -246,7 +246,7 @@ UPDATE INSERT_TBL SET x = NULL WHERE x = 5;
UPDATE INSERT_TBL SET x = 6 WHERE x = 6;
UPDATE INSERT_TBL SET x = 6 WHERE x = 6;
UPDATE INSERT_TBL SET x = -z, z = -x;
UPDATE INSERT_TBL SET x = -z, z = -x;
UPDATE INSERT_TBL SET x = z, z = x;
UPDATE INSERT_TBL SET x = z, z = x;
ERROR: new row for relation "insert_tbl" violates
CHECK
constraint "insert_con"
ERROR: new row for relation "insert_tbl" violates
check
constraint "insert_con"
SELECT * FROM INSERT_TBL;
SELECT * FROM INSERT_TBL;
x | y | z
x | y | z
---+---------------+----
---+---------------+----
...
@@ -273,7 +273,7 @@ SELECT '' AS two, * FROM COPY_TBL;
...
@@ -273,7 +273,7 @@ SELECT '' AS two, * FROM COPY_TBL;
(2 rows)
(2 rows)
COPY COPY_TBL FROM '@abs_srcdir@/data/constrf.data';
COPY COPY_TBL FROM '@abs_srcdir@/data/constrf.data';
ERROR: new row for relation "copy_tbl" violates
CHECK
constraint "copy_con"
ERROR: new row for relation "copy_tbl" violates
check
constraint "copy_con"
CONTEXT: COPY FROM, line 2
CONTEXT: COPY FROM, line 2
SELECT * FROM COPY_TBL;
SELECT * FROM COPY_TBL;
x | y | z
x | y | z
...
@@ -290,11 +290,11 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "primary_tbl_pkey
...
@@ -290,11 +290,11 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "primary_tbl_pkey
INSERT INTO PRIMARY_TBL VALUES (1, 'one');
INSERT INTO PRIMARY_TBL VALUES (1, 'one');
INSERT INTO PRIMARY_TBL VALUES (2, 'two');
INSERT INTO PRIMARY_TBL VALUES (2, 'two');
INSERT INTO PRIMARY_TBL VALUES (1, 'three');
INSERT INTO PRIMARY_TBL VALUES (1, 'three');
ERROR: duplicate key violates
UNIQUE
constraint "primary_tbl_pkey"
ERROR: duplicate key violates
unique
constraint "primary_tbl_pkey"
INSERT INTO PRIMARY_TBL VALUES (4, 'three');
INSERT INTO PRIMARY_TBL VALUES (4, 'three');
INSERT INTO PRIMARY_TBL VALUES (5, 'one');
INSERT INTO PRIMARY_TBL VALUES (5, 'one');
INSERT INTO PRIMARY_TBL (t) VALUES ('six');
INSERT INTO PRIMARY_TBL (t) VALUES ('six');
ERROR: null value
for attribute "i" violates NOT NULL
constraint
ERROR: null value
in column "i" violates not-null
constraint
SELECT '' AS four, * FROM PRIMARY_TBL;
SELECT '' AS four, * FROM PRIMARY_TBL;
four | i | t
four | i | t
------+---+-------
------+---+-------
...
@@ -314,7 +314,7 @@ INSERT INTO PRIMARY_TBL VALUES (1, 'three');
...
@@ -314,7 +314,7 @@ INSERT INTO PRIMARY_TBL VALUES (1, 'three');
INSERT INTO PRIMARY_TBL VALUES (4, 'three');
INSERT INTO PRIMARY_TBL VALUES (4, 'three');
INSERT INTO PRIMARY_TBL VALUES (5, 'one');
INSERT INTO PRIMARY_TBL VALUES (5, 'one');
INSERT INTO PRIMARY_TBL (t) VALUES ('six');
INSERT INTO PRIMARY_TBL (t) VALUES ('six');
ERROR: null value
for attribute "i" violates NOT NULL
constraint
ERROR: null value
in column "i" violates not-null
constraint
SELECT '' AS three, * FROM PRIMARY_TBL;
SELECT '' AS three, * FROM PRIMARY_TBL;
three | i | t
three | i | t
-------+---+-------
-------+---+-------
...
@@ -334,7 +334,7 @@ NOTICE: CREATE TABLE / UNIQUE will create implicit index "unique_tbl_i_key" for
...
@@ -334,7 +334,7 @@ NOTICE: CREATE TABLE / UNIQUE will create implicit index "unique_tbl_i_key" for
INSERT INTO UNIQUE_TBL VALUES (1, 'one');
INSERT INTO UNIQUE_TBL VALUES (1, 'one');
INSERT INTO UNIQUE_TBL VALUES (2, 'two');
INSERT INTO UNIQUE_TBL VALUES (2, 'two');
INSERT INTO UNIQUE_TBL VALUES (1, 'three');
INSERT INTO UNIQUE_TBL VALUES (1, 'three');
ERROR: duplicate key violates
UNIQUE
constraint "unique_tbl_i_key"
ERROR: duplicate key violates
unique
constraint "unique_tbl_i_key"
INSERT INTO UNIQUE_TBL VALUES (4, 'four');
INSERT INTO UNIQUE_TBL VALUES (4, 'four');
INSERT INTO UNIQUE_TBL VALUES (5, 'one');
INSERT INTO UNIQUE_TBL VALUES (5, 'one');
INSERT INTO UNIQUE_TBL (t) VALUES ('six');
INSERT INTO UNIQUE_TBL (t) VALUES ('six');
...
@@ -358,7 +358,7 @@ INSERT INTO UNIQUE_TBL VALUES (1, 'one');
...
@@ -358,7 +358,7 @@ INSERT INTO UNIQUE_TBL VALUES (1, 'one');
INSERT INTO UNIQUE_TBL VALUES (2, 'two');
INSERT INTO UNIQUE_TBL VALUES (2, 'two');
INSERT INTO UNIQUE_TBL VALUES (1, 'three');
INSERT INTO UNIQUE_TBL VALUES (1, 'three');
INSERT INTO UNIQUE_TBL VALUES (1, 'one');
INSERT INTO UNIQUE_TBL VALUES (1, 'one');
ERROR: duplicate key violates
UNIQUE
constraint "unique_tbl_i_key"
ERROR: duplicate key violates
unique
constraint "unique_tbl_i_key"
INSERT INTO UNIQUE_TBL VALUES (5, 'one');
INSERT INTO UNIQUE_TBL VALUES (5, 'one');
INSERT INTO UNIQUE_TBL (t) VALUES ('six');
INSERT INTO UNIQUE_TBL (t) VALUES ('six');
SELECT '' AS five, * FROM UNIQUE_TBL;
SELECT '' AS five, * FROM UNIQUE_TBL;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment