Added test for the case that arose in #325
This commit is contained in:
@@ -385,6 +385,11 @@ BEGIN;
|
|||||||
$$;
|
$$;
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
-- Long table name could cause possible sequence rename collision #325
|
||||||
|
CREATE TABLE "wadus_table_9473e8f6-2da1-11e8-8bca-0204e4dfe4d8" ( cartodb_id serial primary key );
|
||||||
|
SELECT CDB_CartodbfyTableCheck('wadus_table_9473e8f6-2da1-11e8-8bca-0204e4dfe4d8'::REGCLASS, 'Long table name could cause sequence collision while renaming #325');
|
||||||
|
DROP TABLE "wadus_table_9473e8f6-2da1-11e8-8bca-0204e4dfe4d8";
|
||||||
|
|
||||||
-- TODO: table with existing custom-triggered the_geom
|
-- TODO: table with existing custom-triggered the_geom
|
||||||
|
|
||||||
DROP FUNCTION CDB_CartodbfyTableCheck(regclass, text);
|
DROP FUNCTION CDB_CartodbfyTableCheck(regclass, text);
|
||||||
|
|||||||
@@ -150,5 +150,8 @@ SET
|
|||||||
BEGIN
|
BEGIN
|
||||||
DO
|
DO
|
||||||
ROLLBACK
|
ROLLBACK
|
||||||
|
CREATE TABLE
|
||||||
|
Long table name could cause sequence collision while renaming #325 cartodbfied fine
|
||||||
|
DROP TABLE
|
||||||
DROP FUNCTION
|
DROP FUNCTION
|
||||||
DROP FUNCTION
|
DROP FUNCTION
|
||||||
|
|||||||
Reference in New Issue
Block a user