1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-18 13:44:19 +03:00

Use specific collation where needed in new test

Oversight in commit a379061a22a8.

Per Czech buildfarm members jay and hippopotamus.
This commit is contained in:
Álvaro Herrera 2025-04-07 21:58:06 +02:00
parent 8cfbdf8f4d
commit 17bcf4f545
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
2 changed files with 2 additions and 2 deletions

View File

@ -1367,7 +1367,7 @@ PREPARE get_nnconstraint_info(regclass[]) AS
SELECT conrelid::regclass as tabname, conname, convalidated, conislocal, coninhcount SELECT conrelid::regclass as tabname, conname, convalidated, conislocal, coninhcount
FROM pg_constraint FROM pg_constraint
WHERE conrelid = ANY($1) WHERE conrelid = ANY($1)
ORDER BY conrelid::regclass::text, conname; ORDER BY conrelid::regclass::text COLLATE "C", conname;
CREATE TABLE notnull_tbl1 (a int, b int); CREATE TABLE notnull_tbl1 (a int, b int);
INSERT INTO notnull_tbl1 VALUES (NULL, 1), (300, 3); INSERT INTO notnull_tbl1 VALUES (NULL, 1), (300, 3);
ALTER TABLE notnull_tbl1 ADD CONSTRAINT nn NOT NULL a; -- error ALTER TABLE notnull_tbl1 ADD CONSTRAINT nn NOT NULL a; -- error

View File

@ -812,7 +812,7 @@ PREPARE get_nnconstraint_info(regclass[]) AS
SELECT conrelid::regclass as tabname, conname, convalidated, conislocal, coninhcount SELECT conrelid::regclass as tabname, conname, convalidated, conislocal, coninhcount
FROM pg_constraint FROM pg_constraint
WHERE conrelid = ANY($1) WHERE conrelid = ANY($1)
ORDER BY conrelid::regclass::text, conname; ORDER BY conrelid::regclass::text COLLATE "C", conname;
CREATE TABLE notnull_tbl1 (a int, b int); CREATE TABLE notnull_tbl1 (a int, b int);
INSERT INTO notnull_tbl1 VALUES (NULL, 1), (300, 3); INSERT INTO notnull_tbl1 VALUES (NULL, 1), (300, 3);