Make time interval test not dependent on intervalstyle

Fixes testing from under cartodb/lib/sql
master
Sandro Santilli 10 years ago
parent 967b7abec0
commit 5602edd207

@ -175,7 +175,8 @@ CREATE TABLE t AS SELECT NOW()::text as created_at,
NOW()::text as updated_at, NOW()::text as updated_at,
NOW() as reftime; NOW() as reftime;
SELECT CDB_CartodbfyTableCheck('t', 'text timestamps'); SELECT CDB_CartodbfyTableCheck('t', 'text timestamps');
SELECT reftime-created_at, reftime-updated_at FROM t; SELECT extract(secs from reftime-created_at),
extract(secs from reftime-updated_at) FROM t;
DROP TABLE t; DROP TABLE t;
-- table with existing cartodb_id field ot type text -- table with existing cartodb_id field ot type text

@ -27,7 +27,7 @@ extent|BOX(1 1,2 2)
DROP TABLE DROP TABLE
SELECT 1 SELECT 1
text timestamps cartodbfied fine text timestamps cartodbfied fine
@ 0|@ 0 0|0
DROP TABLE DROP TABLE
SELECT 1 SELECT 1
text cartodb_id cartodbfied fine text cartodb_id cartodbfied fine

Loading…
Cancel
Save