Uses CDB_CartodbfyTableCheck() 148

pull/168/head
Guido Fioravantti 9 years ago
parent 3429e93979
commit 5de395a4a8

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

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

Loading…
Cancel
Save