Re: dollar-quoting trouble

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: dollar-quoting trouble
Дата
Msg-id 20070420081047.GA4869@merkur.hilbert.loc
обсуждение исходный текст
Ответ на Re: dollar-quoting trouble  (Klint Gore <kg@kgb.une.edu.au>)
Ответы Re: dollar-quoting trouble
Список pgsql-general
On Fri, Apr 20, 2007 at 12:40:45PM +1000, Klint Gore wrote:

>> I can't spot the trouble with this function definition:
...
>> PostgreSQL 8.1.8 (Debian/Etch) is telling me:
Actually, Lenny.

>> psql:dem-identity.sql:43: ERROR:  unterminated dollar-quoted string at or near "$null_empty_title$
>> begin
>>         if (NEW.title is null) then
>>                 return NEW;" at character 83
>
> Does "psql --version" match "select version()"?  There's a message in
> the archive pgsql-bugs where this happened.
That was indeed part of the trouble:

Both 7.4.16 and 8.1.8 being installed on Debian I couldn't
get the default psql be 8.1 despite using
update-alternatives. So there was psql 7.4 being used
against the 8.1 server which is bound to lead to trouble.

That being solved by deinstalling 7.4 (which I was
transitioning off anyways) psql created the function just
fine.

My own bootstrapper code still throws the error (it is using
psycopg2 which is using libpq4) ... but, wait, deinstalling
libpq3 apparently makes psycopg2 use libpq4 (?!) as it now
works ...

Thanks for the assistance from the GNUmed team,
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

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

Предыдущее
От: Chris
Дата:
Сообщение: Re: SQL WHERE: many sql or large IN()
Следующее
От: Shane Ambler
Дата:
Сообщение: Re: dollar-quoting trouble