Skip to content

Commit 897830b

Browse files
author
Gilles Darold
committed
Fix regression test 11 for all supported PG version.
1 parent 9c99940 commit 897830b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/expected/11_after_error.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ SELECT nspname, relname, preserved, code FROM pgtt_schema.pg_global_temp_tables;
3838
(1 row)
3939

4040
-- Second insert failure
41-
INSERT INTO t_glob_temptable1 VALUES ('Two', 2);
42-
ERROR: invalid input syntax for type integer: "Two"
43-
LINE 1: INSERT INTO t_glob_temptable1 VALUES ('Two', 2);
44-
^
41+
INSERT INTO t_glob_temptable1 VALUES (2, two);
42+
ERROR: column "two" does not exist
43+
LINE 1: INSERT INTO t_glob_temptable1 VALUES (2, two);
44+
^
4545
ROLLBACK;
4646
-- Look if we have two tables now
4747
SELECT regexp_replace(n.nspname, '\d+', 'x', 'g'), c.relname FROM pg_class c JOIN pg_namespace n ON (c.relnamespace=n.oid) WHERE relname = 't_glob_temptable1';

test/sql/11_after_error.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SELECT regexp_replace(n.nspname, '\d+', 'x', 'g'), c.relname FROM pg_class c JOI
2222
SELECT nspname, relname, preserved, code FROM pgtt_schema.pg_global_temp_tables;
2323

2424
-- Second insert failure
25-
INSERT INTO t_glob_temptable1 VALUES ('Two', 2);
25+
INSERT INTO t_glob_temptable1 VALUES (2, two);
2626

2727
ROLLBACK;
2828

0 commit comments

Comments
 (0)