Merge pull request #1468 from citusdata/test_column_name

Add weird column name test for create_distributed_table
pull/1379/head
Marco Slot 2017-06-22 17:14:17 +02:00 committed by GitHub
commit dc799c6e5e
2 changed files with 6 additions and 6 deletions

View File

@ -490,7 +490,7 @@ INSERT INTO data_load_test VALUES (243, 'world');
DROP TABLE data_load_test; DROP TABLE data_load_test;
END; END;
-- Test data loading after dropping a column -- Test data loading after dropping a column
CREATE TABLE data_load_test (col1 int, col2 text, col3 text); CREATE TABLE data_load_test (col1 int, col2 text, col3 text, "CoL4"")" int);
INSERT INTO data_load_test VALUES (132, 'hello', 'world'); INSERT INTO data_load_test VALUES (132, 'hello', 'world');
INSERT INTO data_load_test VALUES (243, 'world', 'hello'); INSERT INTO data_load_test VALUES (243, 'world', 'hello');
ALTER TABLE data_load_test DROP COLUMN col2; ALTER TABLE data_load_test DROP COLUMN col2;
@ -502,10 +502,10 @@ NOTICE: Copying data from local table...
(1 row) (1 row)
SELECT * FROM data_load_test; SELECT * FROM data_load_test;
col1 | col3 col1 | col3 | CoL4")
------+------- ------+-------+--------
132 | world 132 | world |
243 | hello 243 | hello |
(2 rows) (2 rows)
DROP TABLE data_load_test; DROP TABLE data_load_test;

View File

@ -265,7 +265,7 @@ DROP TABLE data_load_test;
END; END;
-- Test data loading after dropping a column -- Test data loading after dropping a column
CREATE TABLE data_load_test (col1 int, col2 text, col3 text); CREATE TABLE data_load_test (col1 int, col2 text, col3 text, "CoL4"")" int);
INSERT INTO data_load_test VALUES (132, 'hello', 'world'); INSERT INTO data_load_test VALUES (132, 'hello', 'world');
INSERT INTO data_load_test VALUES (243, 'world', 'hello'); INSERT INTO data_load_test VALUES (243, 'world', 'hello');
ALTER TABLE data_load_test DROP COLUMN col2; ALTER TABLE data_load_test DROP COLUMN col2;