--
CREATE TABLE ABSTIME_TBL (f1 abstime);
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');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
two
--
CREATE TABLE ABSTIME_TBL (f1 abstime);
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');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
two
--
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP
- WHERE f1 <> timestamp 'current'
+ WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp";
16 | timestamp | date
----+------------------------------+------------
SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL
- WHERE isfinite(f1) AND f1 <> abstime 'current'
+ WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime;
four | abstime | date
------+------------------------------+------------
--
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP
- WHERE f1 <> timestamp 'current'
+ WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp";
16 | timestamp | date
----+------------------------------+------------
SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL
- WHERE isfinite(f1) AND f1 <> abstime 'current'
+ WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime;
four | abstime | date
------+------------------------------+------------
--
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP
- WHERE f1 <> timestamp 'current'
+ WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp";
16 | timestamp | date
----+------------------------------+------------
SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL
- WHERE isfinite(f1) AND f1 <> abstime 'current'
+ WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime;
four | abstime | date
------+------------------------------+------------
-- statements.
INSERT INTO TIMESTAMP_TBL VALUES ('now');
INSERT INTO TIMESTAMP_TBL VALUES ('current');
+ERROR: Bad timestamp external representation 'current'
INSERT INTO TIMESTAMP_TBL VALUES ('today');
INSERT INTO TIMESTAMP_TBL VALUES ('yesterday');
INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow');
CREATE TABLE TIMESTAMPTZ_TBL ( d1 timestamp(2) with time zone);
INSERT INTO TIMESTAMPTZ_TBL VALUES ('now');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('current');
+ERROR: Bad timestamp external representation 'current'
INSERT INTO TIMESTAMPTZ_TBL VALUES ('today');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('yesterday');
INSERT INTO TIMESTAMPTZ_TBL VALUES ('tomorrow');
CREATE TABLE ABSTIME_TBL (f1 abstime);
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');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
END;
SELECT '' AS "16", f1 AS "timestamp", date(f1) AS date
FROM TEMP_TIMESTAMP
- WHERE f1 <> timestamp 'current'
+ WHERE f1 <> timestamp 'now'
ORDER BY date, "timestamp";
SELECT '' AS "16", f1 AS "timestamp", abstime(f1) AS abstime
SELECT '' AS four, f1 AS abstime, date(f1) AS date
FROM ABSTIME_TBL
- WHERE isfinite(f1) AND f1 <> abstime 'current'
+ WHERE isfinite(f1) AND f1 <> abstime 'now'
ORDER BY date, abstime;
SELECT '' AS two, d1 AS "timestamp", abstime(d1) AS abstime