Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32ca22b

Browse files
committed
Revert test case added by commit 1e165d0.
The buildfarm is still showing at least three distinct behaviors for a bad locale name in CREATE COLLATION. Although this test was helpful for getting the error reporting code into some usable shape, it doesn't seem worth carrying multiple expected-files in order to support the test in perpetuity. So pull it back out. Discussion: https://postgr.es/m/CAKKotZS-wcDcofXDCH=sidiuajE+nqHn2CGjLLX78anyDmi3gQ@mail.gmail.com
1 parent 514f613 commit 32ca22b

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/test/regress/expected/collate.out

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,6 @@ CREATE COLLATION mycoll1 FROM "C";
627627
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
628628
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
629629
ERROR: collation "default" cannot be copied
630-
CREATE COLLATION mycoll4 ( LOCALE = "no_such_locale" ); -- fail
631-
ERROR: could not create locale "no_such_locale": No such file or directory
632-
DETAIL: The operating system could not find any locale data for the locale name "no_such_locale".
633630
DROP COLLATION mycoll1;
634631
CREATE TABLE collate_test23 (f1 text collate mycoll2);
635632
DROP COLLATION mycoll2; -- fail

src/test/regress/sql/collate.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ EXPLAIN (COSTS OFF)
234234
CREATE COLLATION mycoll1 FROM "C";
235235
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
236236
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
237-
CREATE COLLATION mycoll4 ( LOCALE = "no_such_locale" ); -- fail
238237

239238
DROP COLLATION mycoll1;
240239
CREATE TABLE collate_test23 (f1 text collate mycoll2);

0 commit comments

Comments
 (0)