Removes extra d in delimiter 155

This commit is contained in:
Guido Fioravantti 2015-10-30 17:49:27 +01:00
parent e99231252e
commit 453b3af872
3 changed files with 12 additions and 1 deletions

View File

@ -166,7 +166,7 @@ BEGIN
AS seq INTO rec2; AS seq INTO rec2;
-- Reset sequence name -- Reset sequence name
sql := Format('ALTER SEQUENCE %s RESTART WITH %d', rec2.seq::text, rec.max + 1); sql := Format('ALTER SEQUENCE %s RESTART WITH %', rec2.seq::text, rec.max + 1);
RAISE DEBUG 'Running %', sql; RAISE DEBUG 'Running %', sql;
EXECUTE sql; EXECUTE sql;

View File

@ -319,6 +319,13 @@ SELECT CDB_CartodbfyTableCheck('test', 'Table with non unique and null cartodb_i
SELECT cartodb_id, cartodb_id_0 from test; SELECT cartodb_id, cartodb_id_0 from test;
DROP TABLE test; DROP TABLE test;
-- _CDB_create_cartodb_id_column with cartodb_id already present
CREATE TABLE test (cartodb_id integer);
SELECT _CDB_Create_Cartodb_ID_Column('test'::regclass);
SELECT column_name FROM information_schema.columns WHERE table_name = 'test' AND column_name = '_cartodb_id0';
DROP TABLE test;
-- TODO: table with existing custom-triggered the_geom -- TODO: table with existing custom-triggered the_geom

View File

@ -102,5 +102,9 @@ Table with non unique and null cartodb_id #148 cartodbfied fine
3| 3|
4|2 4|2
DROP TABLE DROP TABLE
CREATE TABLE
_cartodb_id0
DROP TABLE
DROP FUNCTION DROP FUNCTION
DROP FUNCTION DROP FUNCTION