Re: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Theo Kramer" <theo(at)flame(dot)co(dot)za>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1178: PQexecPrepared - PostgreSQL 7.4.1
Date: 2004-06-22 17:23:38
Message-ID: 19585.1087925018@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-06-22 21:12:41 BUG #1179: Time comparison fail
Previous Message Joe Carlson 2004-06-22 16:31:46 Re: BUG #1175: insert rule action with defaults