Menu

#298 CREATE TABLE AS passes even if there is a collation clash

Development Queue
open
nobody
5
2012-06-03
2012-04-20
Abbas Butt
No

Consider this test case

CREATE TABLE ct1 (a int,b text COLLATE "C" NOT NULL);
CREATE TABLE ct2 (a int,b text COLLATE "POSIX");

create table ct3 as select * from ct1 union all select * from ct2;

Expected results is

ERROR: no collation was derived for column "b" with collatable type text
HINT: Use the COLLATE clause to set the collation explicitly.

Obtained result is

INSERT 0 0
It should have failed.

Discussion

  • Abbas Butt

    Abbas Butt - 2012-04-20

    Test case is collation.sql

     
  • Koichi Suzuki

    Koichi Suzuki - 2012-06-03
    • milestone: 2663467 --> Development Queue
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.