Uses CDB_CartodbfyTableCheck() 148

This commit is contained in:
Guido Fioravantti 2015-09-29 19:01:30 +02:00
parent 3429e93979
commit 5de395a4a8
2 changed files with 9 additions and 9 deletions

View File

@ -281,7 +281,7 @@ INSERT INTO many_colliding_columns VALUES (
SELECT CDB_CartodbfyTableCheck('many_colliding_columns', 'Many colliding columns #141'); SELECT CDB_CartodbfyTableCheck('many_colliding_columns', 'Many colliding columns #141');
DROP TABLE many_colliding_columns; DROP TABLE many_colliding_columns;
-- table with null cartodb_id -- Table with null cartodb_id
CREATE TABLE test ( CREATE TABLE test (
cartodb_id integer cartodb_id integer
); );
@ -290,11 +290,11 @@ INSERT INTO test VALUES
(2), (2),
(NULL), (NULL),
(3); (3);
SELECT CDB_CartodbfyTable('test'); SELECT CDB_CartodbfyTableCheck('test', 'Table with null cartodb_id #148');
SELECT cartodb_id, cartodb_id_1 from test; SELECT cartodb_id, cartodb_id_1 from test;
DROP TABLE test; DROP TABLE test;
-- table with non unique cartodb_id -- Table with non unique cartodb_id
CREATE TABLE test ( CREATE TABLE test (
cartodb_id integer cartodb_id integer
); );
@ -302,11 +302,11 @@ INSERT INTO test VALUES
(1), (1),
(2), (2),
(2); (2);
SELECT CDB_CartodbfyTable('test'); SELECT CDB_CartodbfyTableCheck('test', 'Table with non unique cartodb_id #148');
SELECT cartodb_id, cartodb_id_1 from test; SELECT cartodb_id, cartodb_id_1 from test;
DROP TABLE test; DROP TABLE test;
-- table with non unique and null cartodb_id -- Table with non unique and null cartodb_id
CREATE TABLE test ( CREATE TABLE test (
cartodb_id integer cartodb_id integer
); );
@ -315,7 +315,7 @@ INSERT INTO test VALUES
(2), (2),
(NULL), (NULL),
(2); (2);
SELECT CDB_CartodbfyTable('test'); SELECT CDB_CartodbfyTableCheck('test', 'Table with non unique and null cartodb_id #148');
SELECT cartodb_id, cartodb_id_1 from test; SELECT cartodb_id, cartodb_id_1 from test;
DROP TABLE test; DROP TABLE test;

View File

@ -81,7 +81,7 @@ Many colliding columns #141 cartodbfied fine
DROP TABLE DROP TABLE
CREATE TABLE CREATE TABLE
INSERT 0 4 INSERT 0 4
test Table with null cartodb_id #148 cartodbfied fine
1|1 1|1
2|2 2|2
3| 3|
@ -89,14 +89,14 @@ test
DROP TABLE DROP TABLE
CREATE TABLE CREATE TABLE
INSERT 0 3 INSERT 0 3
test Table with non unique cartodb_id #148 cartodbfied fine
1|1 1|1
2|2 2|2
3|2 3|2
DROP TABLE DROP TABLE
CREATE TABLE CREATE TABLE
INSERT 0 4 INSERT 0 4
test Table with non unique and null cartodb_id #148 cartodbfied fine
1|1 1|1
2|2 2|2
3| 3|