Disable a couple of tests

Comment out tests that check cartodb_id text columns. These are no
longer taken into consideration as candidate primary ID (candidate
columns should be numeric).
This commit is contained in:
Rafa de la Torre
2015-08-14 13:46:01 +02:00
parent 010dd13e4d
commit 900531f0c1
2 changed files with 12 additions and 18 deletions
+12 -10
View File
@@ -164,17 +164,19 @@ SELECT CDB_CartodbfyTableCheck('t', 'trigger-protected the_geom');
SELECT 'extent',ST_Extent(ST_SnapToGrid(the_geom,0.2)) FROM t; SELECT 'extent',ST_Extent(ST_SnapToGrid(the_geom,0.2)) FROM t;
DROP TABLE t; DROP TABLE t;
-- table with existing cartodb_id field of type text -- INFO: disabled because cartodbfy does not longer consider text columns for primary ID
CREATE TABLE t AS SELECT 10::text as cartodb_id; -- -- table with existing cartodb_id field of type text
SELECT CDB_CartodbfyTableCheck('t', 'text cartodb_id'); -- CREATE TABLE t AS SELECT 10::text as cartodb_id;
select cartodb_id/2 FROM t; -- SELECT CDB_CartodbfyTableCheck('t', 'text cartodb_id');
DROP TABLE t; -- select cartodb_id/2 FROM t;
-- DROP TABLE t;
-- table with existing cartodb_id field of type text not casting -- INFO: disabled because cartodbfy does not longer consider text columns for primary ID
CREATE TABLE t AS SELECT 'nan' as cartodb_id; -- -- table with existing cartodb_id field of type text not casting
SELECT CDB_CartodbfyTableCheck('t', 'uncasting text cartodb_id'); -- CREATE TABLE t AS SELECT 'nan' as cartodb_id;
select cartodb_id,_cartodb_id0 FROM t; -- SELECT CDB_CartodbfyTableCheck('t', 'uncasting text cartodb_id');
DROP TABLE t; -- select cartodb_id,_cartodb_id0 FROM t;
-- DROP TABLE t;
-- table with existing cartodb_id field of type int4 not sequenced -- table with existing cartodb_id field of type int4 not sequenced
CREATE TABLE t AS SELECT 1::int4 as cartodb_id; CREATE TABLE t AS SELECT 1::int4 as cartodb_id;
-8
View File
@@ -28,14 +28,6 @@ trigger-protected the_geom cartodbfied fine
extent|BOX(1 1,2 2) extent|BOX(1 1,2 2)
DROP TABLE DROP TABLE
SELECT 1 SELECT 1
text cartodb_id cartodbfied fine
5
DROP TABLE
SELECT 1
uncasting text cartodb_id cartodbfied fine
1|nan
DROP TABLE
SELECT 1
unsequenced cartodb_id cartodbfied fine unsequenced cartodb_id cartodbfied fine
1 1
DROP TABLE DROP TABLE