Fix: Allow dots in column names to be cartodbfied

This fixes #6144 of cartodb
Note that prior commit ea9503bd32
only added the tests for this, but not the actual fix (oops)
This commit is contained in:
Javier Goizueta
2015-11-20 13:05:15 +01:00
parent a0ca2288f4
commit 83ac8f4502

View File

@@ -1068,8 +1068,8 @@ BEGIN
-- Add now add all the rest of the columns
-- by selecting their names into an array and
-- joining the array with a comma
SELECT
',' || array_to_string(array_agg(a.attname),',') AS column_name_sql,
SELECT
',' || array_to_string(array_agg(Format('%I',a.attname)),',') AS column_name_sql,
Count(*) AS count
INTO rec
FROM pg_class c