Allow dots in column names to be cartodbfied

This fixes #6144 of cartodb
This commit is contained in:
Javier Goizueta 2015-11-20 12:24:46 +01:00
parent e99231252e
commit ea9503bd32
2 changed files with 15 additions and 0 deletions

View File

@ -319,6 +319,15 @@ SELECT CDB_CartodbfyTableCheck('test', 'Table with non unique and null cartodb_i
SELECT cartodb_id, cartodb_id_0 from test;
DROP TABLE test;
CREATE TABLE test (
name varchar,
"first.value" integer,
"second.value" integer
);
INSERT INTO test VALUES ('one', 1, 2), ('two', 3, 4);
SELECT CDB_CartodbfyTableCheck('test', 'Table with dots in name columns (cartodb #6114)');
SELECT name, "first.value" from test;
DROP TABLE test;
-- TODO: table with existing custom-triggered the_geom

View File

@ -102,5 +102,11 @@ Table with non unique and null cartodb_id #148 cartodbfied fine
3|
4|2
DROP TABLE
CREATE TABLE
INSERT 0 2
Table with dots in name columns (cartodb #6114) cartodbfied fine
one|1
two|3
DROP TABLE
DROP FUNCTION
DROP FUNCTION