Add test for double schema-quoting
This commit is contained in:
@@ -53,6 +53,12 @@ SELECT cartodb.CDB_SyncTable('test_sync_source', 'public', 'test_sync_dest', '{t
|
|||||||
SELECT * FROM test_sync_source ORDER BY cartodb_id;
|
SELECT * FROM test_sync_source ORDER BY cartodb_id;
|
||||||
SELECT * FROM test_sync_dest ORDER BY cartodb_id;
|
SELECT * FROM test_sync_dest ORDER BY cartodb_id;
|
||||||
|
|
||||||
|
\echo 'It will work with schemas that need quoting'
|
||||||
|
\set QUIET on
|
||||||
|
SET client_min_messages TO error;
|
||||||
|
CREATE SCHEMA "sch-ema";
|
||||||
|
\set QUIET off
|
||||||
|
SELECT cartodb.CDB_SyncTable('test_sync_source', 'sch-ema', 'test_sync_dest');
|
||||||
|
|
||||||
-- Cleanup
|
-- Cleanup
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|||||||
@@ -58,4 +58,6 @@ NOTICE: MODIFIED 0 row(s)
|
|||||||
2|0101000020E610000000000000000000400000000000000040|0101000020110F00003C0C4ADA772D0B4177F404ABE12E0B41|2|2|bar
|
2|0101000020E610000000000000000000400000000000000040|0101000020110F00003C0C4ADA772D0B4177F404ABE12E0B41|2|2|bar
|
||||||
4|0101000020E610000000000000000010400000000000001040|0101000020110F00003C0C4ADA772D1B4160AB497020331B41|4|4|cantaloupe
|
4|0101000020E610000000000000000010400000000000001040|0101000020110F00003C0C4ADA772D1B4160AB497020331B41|4|4|cantaloupe
|
||||||
5|0101000020E610000000000000000014400000000000001440|0101000020110F000099476EE86AFC20413E7EB983F2012141|5|5|sandia
|
5|0101000020E610000000000000000014400000000000001440|0101000020110F000099476EE86AFC20413E7EB983F2012141|5|5|sandia
|
||||||
|
It will work with schemas that need quoting
|
||||||
|
|
||||||
ROLLBACK
|
ROLLBACK
|
||||||
|
|||||||
Reference in New Issue
Block a user