Date/time value 'current' no longer available

Поиск
Список
Период
Сортировка
Искать

Date/time value 'current' no longer available

От:
Randall Perry <rgp@systame.com>
Дата:
I'm upgrading to 7.2 and saw this in the FAQ. Does this mean any value with
current at the beginning no longer works -- i.e. current_timestamp?

If not, what's suggested in it's place?


-- 
Randy Perry
sysTame
Mac Consulting/Sales

phn                 772.589.6449
mobile email        help@systame.com


Re: Date/time value 'current' no longer available

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Randall Perry  writes:
> I'm upgrading to 7.2 and saw this in the FAQ. Does this mean any value with
> current at the beginning no longer works -- i.e. current_timestamp?

No, it means the magic value 'current' is no longer available.
This has nothing to do with any SQL-specified behavior; it was a
poorly-considered hack that we inherited from Berkeley.

> If not, what's suggested in it's place?

'now' still works, but doesn't have quite the same behavior ('now' is 
converted to a specific timestamp upon input).

			regards, tom lane

Re: Date/time value 'current' no longer available

От:
Randall Perry <rgp@systame.com>
Дата:
Thanks


> Randall Perry  writes:
>> I'm upgrading to 7.2 and saw this in the FAQ. Does this mean any value with
>> current at the beginning no longer works -- i.e. current_timestamp?
> 
> No, it means the magic value 'current' is no longer available.
> This has nothing to do with any SQL-specified behavior; it was a
> poorly-considered hack that we inherited from Berkeley.
> 
>> If not, what's suggested in it's place?
> 
> 'now' still works, but doesn't have quite the same behavior ('now' is
> converted to a specific timestamp upon input).
> 
> regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html

-- 
Randy Perry
sysTame
Mac Consulting/Sales

phn                 772.589.6449
mobile email        help@systame.com


FAQ