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:
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user