set current_schema to 'test_ansi_quotes';
CREATE TABLE test_quotes (a text);
show dolphin.sql_mode;
INSERT INTO test_quotes VALUES('test1');
INSERT INTO "test_quotes" VALUES('test2');
INSERT INTO "test_quotes" VALUES("test3");
SELECT * FROM test_quotes;
set dolphin.sql_mode TO 'sql_mode_strict,sql_mode_full_group,pipes_as_concat';
INSERT INTO test_quotes VALUES('test4');
INSERT INTO "test_quotes" VALUES('test5');
INSERT INTO test_quotes VALUES("test6");
INSERT INTO "test_quotes" VALUES("test7");
SELECT * FROM test_quotes;
SELECT * FROM "test_quotes";
SELECT "a" as a1, a as a2 FROM test_quotes;
CREATE TABLE "test_quotes_2" (a text);
CREATE TABLE test_quotes_2 (a text) compression = "pglz";
desc test_quotes_2;
show tables;
show full tables;
show create table test_quotes_2;
show columns from test_quotes;
show columns from test_quotes_2;
select length("ggg");
select left ("xxxx", 2);
select substr("aaasaaaa", 1, 3);
select "test" != "test";
select * from test_quotes where a like "%test%";
select * from test_quotes where a = "test1";
set dolphin.sql_mode TO 'treat_bxconst_as_binary';
create table ctas_test1 select convert(0x21, unsigned);
\d ctas_test1
create table ctas_test3 select convert(0x21, binary);
\d ctas_test3
set dolphin.sql_mode TO 'treat_bxconst_as_binary,ansi_quotes';
create table ctas_test2 select convert(0x21, unsigned);
\d ctas_test2
create table ctas_test4 select convert(0x21, binary);
\d ctas_test4
drop table ctas_test1;
drop table ctas_test2;
drop table ctas_test3;
drop table ctas_test4;
drop schema test_ansi_quotes cascade;
reset current_schema;