Re: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1
Date
Msg-id 19585.1087925018@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1178: PQexecPrepared - PostgreSQL 7.4.1  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Responses Re: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> PQexec(conn,
>    "PREPARE S0000123_000 (text) AS SELECT * from test1 WHERE t = $1");
> When invoking PQexecPrepared() I get the following message from the backend
> ERROR:  prepared statement "S0000123_0000" does not exist

Case sensitivity.  PQexecPrepared takes its name argument literally,
but anything inside a SQL command will get downcased unless quoted.
So you actually prepared "s0000123_000".

            regards, tom lane

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1
Next
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1179: Time comparison fail