Change exception message and edit tests

This commit is contained in:
Carla Iriberri
2016-03-02 17:41:02 +01:00
parent 76a2cb9132
commit 03ff0365fd
2 changed files with 17 additions and 5 deletions

View File

@@ -171,9 +171,8 @@ select cartodb_id/2 FROM t;
DROP TABLE t;
-- table with existing cartodb_id field of type text not casting
CREATE TABLE t AS SELECT 'nan' as cartodb_id;
CREATE TABLE t AS SELECT 'nan'::text as cartodb_id;
SELECT CDB_CartodbfyTableCheck('t', 'uncasting text cartodb_id');
select cartodb_id,cartodb_id_0 FROM t;
DROP TABLE t;
-- table with empty cartodb_id field of type text