1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Remove the last traces of datatypes datetime and timespan.

This commit is contained in:
Tom Lane
2002-05-03 04:11:08 +00:00
parent 53cedcac22
commit 8338cc03a8
10 changed files with 15 additions and 28 deletions

View File

@ -3,7 +3,7 @@ DROP TABLE mdt;
CREATE TABLE mdt (
id int4,
idesc text,
moddate datetime DEFAULT datetime(CURRENT_TIMESTAMP) NOT NULL
moddate timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL
);
CREATE TRIGGER mdt_moddatetime

View File

@ -450,7 +450,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
if ((strcmp(type, "text") && strcmp(type, "varchar") &&
strcmp(type, "char") && strcmp(type, "bpchar") &&
strcmp(type, "date") && strcmp(type, "datetime")) == 0)
strcmp(type, "date") && strcmp(type, "timestamp")) == 0)
is_char_type = 1;
#ifdef DEBUG_QUERY
elog(DEBUG3, "Check_foreign_key Debug value %s type %s %d",

View File

@ -18,7 +18,7 @@ insert into tttest(price_id, price_val) values (2, 2);
insert into tttest(price_id, price_val,price_off) values (3, 3, 'infinity');
insert into tttest(price_id, price_val,price_off) values (3, 3,
datetime_abstime(datetime_mi_span('now', '100')));
abstime('now'::timestamp - '100 days'::interval));
insert into tttest(price_id, price_val,price_on) values (3, 3, 'infinity');
select * from tttest;