Re: Script errors on run

Поиск
Список
Период
Сортировка
От Ralph Smith
Тема Re: Script errors on run
Дата
Msg-id 8C21E912-194E-4FB3-8B48-47D132EF552E@washington.edu
обсуждение исходный текст
Ответ на Re: Script errors on run  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
I've tried SO MANY variations of w/ and w/o the apostrophes, but
apparently not just the right one.

As you knew and I doubted, it NOW WORKS!

Whew!
You can bet that I'm keeping this snippet of code handy.

Thank you very much,
Ralph
==================================
On Jun 4, 2008, at 4:34 PM, Stephan Szabo wrote:

> On Wed, 4 Jun 2008, Ralph Smith wrote:
>
>>   -- ==========================================
>>   good_date := to_date(year||'-'||month||'-'||day , 'YYYY-MM-DD') ;
>>
>>   RAISE INFO 'good_date =  %', good_date ;
>>
>>   UsecsD := EXTRACT(EPOCH FROM DATE 'good_date') ;
>
> You want something like:
> UsecsD := EXTRACT(EPOCH FROM good_date);
>
> Note the lack of single quotes. You want to use the variable's
> value, not
> a literal string with the value 'good_date'.


В списке pgsql-general по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Insert into master table ->" 0 rows affected" -> Hibernate problems
Следующее
От: Jason Long
Дата:
Сообщение: Re: full vacuum really slows down query