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:
@@ -1068,8 +1068,8 @@ BEGIN
|
|||||||
-- Add now add all the rest of the columns
|
-- Add now add all the rest of the columns
|
||||||
-- by selecting their names into an array and
|
-- by selecting their names into an array and
|
||||||
-- joining the array with a comma
|
-- joining the array with a comma
|
||||||
SELECT
|
SELECT
|
||||||
',' || array_to_string(array_agg(a.attname),',') AS column_name_sql,
|
',' || array_to_string(array_agg(Format('%I',a.attname)),',') AS column_name_sql,
|
||||||
Count(*) AS count
|
Count(*) AS count
|
||||||
INTO rec
|
INTO rec
|
||||||
FROM pg_class c
|
FROM pg_class c
|
||||||
|
|||||||
Reference in New Issue
Block a user