Re: case sensitivity in PQExecPrepared

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: case sensitivity in PQExecPrepared
Date: 2004-07-16 21:00:05
Message-ID: 200407162300.05493.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-07-16 21:11:42 Re: serverlog rotation/functions
Previous Message Gaetano Mendola 2004-07-16 20:49:47 no instruction after install