Add test for failing scenario #138

This commit is contained in:
Rafa de la Torre 2015-09-07 16:28:35 +02:00
parent 6e4a5b5635
commit 497034c285
2 changed files with 16 additions and 0 deletions

View File

@ -225,6 +225,18 @@ SELECT CDB_CartodbfyTable('original');
DROP TABLE original_renamed;
DROP TABLE original;
-- Table always have a default seq value after cartodbfy #123
CREATE TABLE bug_empty_table_no_seq (
cartodb_id integer,
the_geom geometry(Geometry,4326),
the_geom_webmercator geometry(Geometry,3857),
name text,
description text
);
SELECT CDB_CartodbfyTable('bug_empty_table_no_seq');
INSERT INTO bug_empty_table_no_seq DEFAULT VALUES;
DROP TABLE bug_empty_table_no_seq;
-- TODO: table with existing custom-triggered the_geom
DROP FUNCTION CDB_CartodbfyTableCheck(regclass, text);

View File

@ -58,5 +58,9 @@ CREATE TABLE
original
DROP TABLE
DROP TABLE
CREATE TABLE
bug_empty_table_no_seq
INSERT 0 1
DROP TABLE
DROP FUNCTION
DROP FUNCTION