Re: case sensitivity in PQExecPrepared - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: case sensitivity in PQExecPrepared
Date
Msg-id 200407162300.05493.peter_e@gmx.net
Whole thread Raw
In response to Re: case sensitivity in PQExecPrepared  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List pgsql-hackers
Merlin Moncure wrote:
> Well, yes :)  Just to be absolutely clear what I mean, the following
> will fail (pseudocode, but you get the idea):
>
> char stmt[] = "prepare X as select 0()";
> PQexec(c, "execute X"); <-- works
> PQexecPrepared(c, "X" [...]); <-- fails
>
> You are saying this is the correct and expected behavior?

Yes, because part of those syntax rules is that in SQL, unquoted 
identifiers are folded to lower case, but in C they are not.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: case sensitivity in PQExecPrepared
Next
From: Bruce Momjian
Date:
Subject: Re: serverlog rotation/functions