Commit 52ca149b authored by Tom Lane's avatar Tom Lane

Update regress tests to reflect removal of 'current'.

parent 370174b9
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
-- --
CREATE TABLE ABSTIME_TBL (f1 abstime); CREATE TABLE ABSTIME_TBL (f1 abstime);
BEGIN; BEGIN;
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'current'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ; SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
two two
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
-- --
CREATE TABLE ABSTIME_TBL (f1 abstime); CREATE TABLE ABSTIME_TBL (f1 abstime);
BEGIN; BEGIN;
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'current'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ; SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
two two
......
...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.* ...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.*
-- --
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP FROM TEMP_TIMESTAMP
WHERE f1 <> timestamp 'current' WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp"; ORDER BY date, "timestamp";
16 | timestamp | date 16 | timestamp | date
----+------------------------------+------------ ----+------------------------------+------------
...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime ...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
SELECT '' AS four, f1 AS abstime, date(f1) AS date SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL FROM ABSTIME_TBL
WHERE isfinite(f1) AND f1 <> abstime 'current' WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime; ORDER BY date, abstime;
four | abstime | date four | abstime | date
------+------------------------------+------------ ------+------------------------------+------------
......
...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.* ...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.*
-- --
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP FROM TEMP_TIMESTAMP
WHERE f1 <> timestamp 'current' WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp"; ORDER BY date, "timestamp";
16 | timestamp | date 16 | timestamp | date
----+------------------------------+------------ ----+------------------------------+------------
...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime ...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
SELECT '' AS four, f1 AS abstime, date(f1) AS date SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL FROM ABSTIME_TBL
WHERE isfinite(f1) AND f1 <> abstime 'current' WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime; ORDER BY date, abstime;
four | abstime | date four | abstime | date
------+------------------------------+------------ ------+------------------------------+------------
......
...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.* ...@@ -2000,7 +2000,7 @@ SELECT '' AS three, ABSTIME_TBL.*
-- --
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP FROM TEMP_TIMESTAMP
WHERE f1 <> timestamp 'current' WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp"; ORDER BY date, "timestamp";
16 | timestamp | date 16 | timestamp | date
----+------------------------------+------------ ----+------------------------------+------------
...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime ...@@ -2047,7 +2047,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
SELECT '' AS four, f1 AS abstime, date(f1) AS date SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL FROM ABSTIME_TBL
WHERE isfinite(f1) AND f1 <> abstime 'current' WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime; ORDER BY date, abstime;
four | abstime | date four | abstime | date
------+------------------------------+------------ ------+------------------------------+------------
......
...@@ -11,6 +11,7 @@ CREATE TABLE TIMESTAMP_TBL ( d1 timestamp(2) without time zone); ...@@ -11,6 +11,7 @@ CREATE TABLE TIMESTAMP_TBL ( d1 timestamp(2) without time zone);
-- statements. -- statements.
INSERT INTO TIMESTAMP_TBL VALUES ('now'); INSERT INTO TIMESTAMP_TBL VALUES ('now');
INSERT INTO TIMESTAMP_TBL VALUES ('current'); INSERT INTO TIMESTAMP_TBL VALUES ('current');
ERROR: Bad timestamp external representation 'current'
INSERT INTO TIMESTAMP_TBL VALUES ('today'); INSERT INTO TIMESTAMP_TBL VALUES ('today');
INSERT INTO TIMESTAMP_TBL VALUES ('yesterday'); INSERT INTO TIMESTAMP_TBL VALUES ('yesterday');
INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow'); INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow');
......
...@@ -6,6 +6,7 @@ SET australian_timezones = 'off'; ...@@ -6,6 +6,7 @@ SET australian_timezones = 'off';
CREATE TABLE TIMESTAMPTZ_TBL ( d1 timestamp(2) with time zone); CREATE TABLE TIMESTAMPTZ_TBL ( d1 timestamp(2) with time zone);
INSERT INTO TIMESTAMPTZ_TBL VALUES ('now'); INSERT INTO TIMESTAMPTZ_TBL VALUES ('now');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('current'); INSERT INTO TIMESTAMPTZ_TBL VALUES ('current');
ERROR: Bad timestamp external representation 'current'
INSERT INTO TIMESTAMPTZ_TBL VALUES ('today'); INSERT INTO TIMESTAMPTZ_TBL VALUES ('today');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('yesterday'); INSERT INTO TIMESTAMPTZ_TBL VALUES ('yesterday');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('tomorrow'); INSERT INTO TIMESTAMPTZ_TBL VALUES ('tomorrow');
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
CREATE TABLE ABSTIME_TBL (f1 abstime); CREATE TABLE ABSTIME_TBL (f1 abstime);
BEGIN; BEGIN;
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'current'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now'); INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ; SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
END; END;
......
...@@ -229,7 +229,7 @@ SELECT '' AS three, ABSTIME_TBL.* ...@@ -229,7 +229,7 @@ SELECT '' AS three, ABSTIME_TBL.*
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP FROM TEMP_TIMESTAMP
WHERE f1 <> timestamp 'current' WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp"; ORDER BY date, "timestamp";
SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
...@@ -238,7 +238,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime ...@@ -238,7 +238,7 @@ SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
SELECT '' AS four, f1 AS abstime, date(f1) AS date SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL FROM ABSTIME_TBL
WHERE isfinite(f1) AND f1 <> abstime 'current' WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime; ORDER BY date, abstime;
SELECT '' AS two, d1 AS "timestamp", abstime(d1) AS abstime SELECT '' AS two, d1 AS "timestamp", abstime(d1) AS abstime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment