]> granicus.if.org Git - postgresql/commit
|From: Keith Parks <emkxp01@mtcc.demon.co.uk>
authorMarc G. Fournier <scrappy@hub.org>
Sun, 26 Jan 1997 17:28:48 +0000 (17:28 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 26 Jan 1997 17:28:48 +0000 (17:28 +0000)
commit427a964c302dd6ec2359eb4a8318303b09bc9363
treecd4a3f7f6b20b7d6c7e014dc424ebfe3c6f4e7b3
parent1d8a696fd555a664961f9d365de29dcc6689e15a
|From: Keith Parks <emkxp01@mtcc.demon.co.uk>
|Subject: [PATCH] adding SYS_TIME just for fun.
|
|Hi,
|
|Whilst I was playing round with the European dates patch I noticed the sysfunc()
|that allows you to do :-
|
|create table test ( da date);
|insert into test values (SYS_DATE);
|
|and have the current system date inserted.
|
|So I thought it would be nice to have the SYS_TIME facility too.
|
|I've cloned the function and changed a few things and there you have it,
|you can now do:
|
|create table test2 ( ti time);
|insert into test2 values (SYS_TIME);
src/backend/parser/sysfunc.c