Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-03-26 Thread Dhaval Jaiswal
7:22:21 PM Subject: [GENERAL] difference between current_timestamp and now() in quotes test2=# create table dupa(a timestamp,  b serial); NOTICE:  CREATE TABLE will create implicit sequence "dupa_b_seq" for serial column "dupa.b" CREATE TABLE test2=# insert into dupa(a) select current

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-24 Thread Jasen Betts
On 2009-01-22, Adrian Klaver wrote: > On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: >> Grzegorz Jaśkiewicz escribió: >> > test2=# insert into dupa(a) select 'current_timestamp' from >> > generate_series(1,100); >> > ERROR: date/time value "current" is no longer supported >> > LINE

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Adrian Klaver
On Thursday 22 January 2009 10:04:05 am Alvaro Herrera wrote: > Adrian Klaver escribió: > > At least on 8.2 'now()' does not work either at least not in the way I > > think you want. I get: > > > > test=# SELECT 'now()'; > > ?column? > > -- > > now() > > (1 row) > > alvherre=# select 'no

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Alvaro Herrera
Adrian Klaver escribió: > At least on 8.2 'now()' does not work either at least not in the way I think > you want. I get: > > test=# SELECT 'now()'; > ?column? > -- > now() > (1 row) alvherre=# select 'now()'::unknown::timestamptz; timestamptz

Re: Resp.: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Reg Me Please
On Thursday 22 January 2009 18:57:16 Osvaldo Kussama wrote: > 2009/1/22, Adrian Klaver : > > On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: > >> Grzegorz Jaśkiewicz escribió: > >> > test2=# insert into dupa(a) select 'current_timestamp' from > >> > generate_series(1,100); > >> > ERROR

Resp.: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Osvaldo Kussama
2009/1/22, Adrian Klaver : > On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: >> Grzegorz Jaśkiewicz escribió: >> > test2=# insert into dupa(a) select 'current_timestamp' from >> > generate_series(1,100); >> > ERROR: date/time value "current" is no longer supported >> > LINE 1: insert

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Grzegorz Jaśkiewicz
well, I am asking that - for pure curiosity reason. I got a function in C, that automagically puts all data in quotes, and that's how I came across that strange difference between current_time and now(). Funny enough, pg will translate first one to latter in domains, for instance. -- Sent via pgs

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Adrian Klaver
On Thursday 22 January 2009 9:07:37 am Jason Long wrote: > Adrian Klaver wrote: > > On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: > >> Grzegorz Jaśkiewicz escribió: > >>> test2=# insert into dupa(a) select 'current_timestamp' from > >>> generate_series(1,100); > >>> ERROR: date/time

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Jason Long
Adrian Klaver wrote: On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: Grzegorz Jaśkiewicz escribió: test2=# insert into dupa(a) select 'current_timestamp' from generate_series(1,100); ERROR: date/time value "current" is no longer supported LINE 1: insert into dupa(a) select

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Adrian Klaver
On Thursday 22 January 2009 8:16:46 am Alvaro Herrera wrote: > Grzegorz Jaśkiewicz escribió: > > test2=# insert into dupa(a) select 'current_timestamp' from > > generate_series(1,100); > > ERROR: date/time value "current" is no longer supported > > LINE 1: insert into dupa(a) select 'current_times

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Alvaro Herrera
Grzegorz Jaśkiewicz escribió: > test2=# insert into dupa(a) select 'current_timestamp' from > generate_series(1,100); > ERROR: date/time value "current" is no longer supported > LINE 1: insert into dupa(a) select 'current_timestamp' from generate... >^ > test2=

Re: [GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Raymond O'Donnell
On 22/01/2009 13:52, Grzegorz Jaśkiewicz wrote: > test2=# insert into dupa(a) select 'current_timestamp' from > generate_series(1,100); > ERROR: date/time value "current" is no longer supported This doesn't answer your question, but you use current_timestamp without the quotes, thus - insert

[GENERAL] difference between current_timestamp and now() in quotes

2009-01-22 Thread Grzegorz Jaśkiewicz
test2=# create table dupa(a timestamp, b serial); NOTICE: CREATE TABLE will create implicit sequence "dupa_b_seq" for serial column "dupa.b" CREATE TABLE test2=# insert into dupa(a) select current_timestamp from generate_series(1,100); INSERT 0 100 test2=# insert into dupa(a) select 'current_ti