From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Peter <peter(at)greatnowhere(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Weird double single quote issue |
Date: | 2006-11-02 14:17:06 |
Message-ID: | 4549FDE2.5020302@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Peter wrote:
> Now, the weirdest thing is that for some db users everything works as it
> should, but for others the returned string is with TWO single quotes!
>
> select 'string to be stored with '' quotemark'::text as returned_string
>
> returns
>
> string to be stored with '' quotemark
>
>
> I cannot replicate the same behavior from SQL Editor, or psql
> commandline. It only happens inside my proc (which is rather monstrous).
1. Have you done ALTER ROLE ... SET ... on any users?
2. Are the locales/encodings different for the users?
3. Can you isolate the problem part of the procedure?
I'm guessing you'll have to do #3 since you can't reproduce it with
psql. If I were you, I'd suspect the proc rather than the DB in this case.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Peter | 2006-11-02 14:29:20 | Re: Weird double single quote issue |
Previous Message | Martijn van Oosterhout | 2006-11-02 14:14:24 | Re: compiling c-function on various version |