Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71efd34

Browse files
committed
Replace references to COLLATE "en_US" with COLLATE "C".
Commitf0e4475 is turning thebuildfarm red; let's try something hopefully more portable.
1 parentf0e4475 commit71efd34

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

‎src/test/regress/expected/alter_table.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ DROP TABLE unparted, fail_part;
30343034
-- check that partition bound is compatible
30353035
CREATE TABLE list_parted (
30363036
a int NOT NULL,
3037-
b char(2) COLLATE "en_US",
3037+
b char(2) COLLATE "C",
30383038
CONSTRAINT check_a CHECK (a > 0)
30393039
) PARTITION BY LIST (a);
30403040
CREATE TABLE fail_part (LIKE list_parted);
@@ -3117,7 +3117,7 @@ ERROR: child table "fail_part" has different collation for column "b"
31173117
DROP TABLE fail_part;
31183118
-- check that the table being attached has all constraints of the parent
31193119
CREATE TABLE fail_part (
3120-
b char(2) COLLATE "en_US",
3120+
b char(2) COLLATE "C",
31213121
a int NOT NULL
31223122
);
31233123
ALTER TABLE list_parted ATTACH PARTITION fail_part FOR VALUES IN (1);
@@ -3130,7 +3130,7 @@ DROP TABLE fail_part;
31303130
-- check the attributes and constraints after partition is attached
31313131
CREATE TABLE part_1 (
31323132
a int NOT NULL,
3133-
b char(2) COLLATE "en_US",
3133+
b char(2) COLLATE "C",
31343134
CONSTRAINT check_a CHECK (a > 0)
31353135
);
31363136
ALTER TABLE list_parted ATTACH PARTITION part_1 FOR VALUES IN (1);

‎src/test/regress/expected/create_table.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ CREATE TABLE partitioned (
391391
b int,
392392
c text,
393393
d text
394-
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "en_US");
394+
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate "default", d collate "C");
395395
-- check relkind
396396
SELECT relkind FROM pg_class WHERE relname = 'partitioned';
397397
relkind
@@ -429,7 +429,7 @@ ERROR: cannot inherit from partitioned table "partitioned2"
429429
b | integer | | |
430430
c | text | | not null |
431431
d | text | | not null |
432-
Partition key: RANGE (a oid_ops, plusone(b), c, d COLLATE "en_US")
432+
Partition key: RANGE (a oid_ops, plusone(b), c, d COLLATE "C")
433433

434434
\d partitioned2
435435
Table "public.partitioned2"

‎src/test/regress/sql/alter_table.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ DROP TABLE unparted, fail_part;
19231923
-- check that partition bound is compatible
19241924
CREATETABLElist_parted (
19251925
aintNOT NULL,
1926-
bchar(2) COLLATE"en_US",
1926+
bchar(2) COLLATE"C",
19271927
CONSTRAINT check_aCHECK (a>0)
19281928
) PARTITION BY LIST (a);
19291929
CREATETABLEfail_part (LIKE list_parted);
@@ -1999,7 +1999,7 @@ DROP TABLE fail_part;
19991999

20002000
-- check that the table being attached has all constraints of the parent
20012001
CREATETABLEfail_part (
2002-
bchar(2) COLLATE"en_US",
2002+
bchar(2) COLLATE"C",
20032003
aintNOT NULL
20042004
);
20052005
ALTERTABLE list_parted ATTACH PARTITION fail_part FORVALUESIN (1);
@@ -2012,7 +2012,7 @@ DROP TABLE fail_part;
20122012
-- check the attributes and constraints after partition is attached
20132013
CREATETABLEpart_1 (
20142014
aintNOT NULL,
2015-
bchar(2) COLLATE"en_US",
2015+
bchar(2) COLLATE"C",
20162016
CONSTRAINT check_aCHECK (a>0)
20172017
);
20182018
ALTERTABLE list_parted ATTACH PARTITION part_1 FORVALUESIN (1);

‎src/test/regress/sql/create_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ CREATE TABLE partitioned (
397397
bint,
398398
ctext,
399399
dtext
400-
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate"default", d collate"en_US");
400+
) PARTITION BY RANGE (a oid_ops, plusone(b), c collate"default", d collate"C");
401401

402402
-- check relkind
403403
SELECT relkindFROM pg_classWHERE relname='partitioned';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp