From: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: dollar-quoting trouble |
Date: | 2007-04-20 08:10:47 |
Message-ID: | 20070420081047.GA4869@merkur.hilbert.loc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Shane Ambler | 2007-04-20 08:38:36 | Re: dollar-quoting trouble |
Previous Message | Chris | 2007-04-20 07:56:39 | Re: SQL WHERE: many sql or large IN() |