PGS 7.4.x PREPARE statement

Started by Geoffrey KRETZabout 21 years ago3 messagesgeneral
Jump to latest

Hi,

I was wondering when a PREPARE statement is check. (ie : is it normal
that the following statement doesn't return an error : PREPARE stmnt AS
"xxxxxxxxxxxxxxxx") ?

Geoffrey Kretz
Four J's Development Tools

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Geoffrey KRETZ (#1)
Re: PGS 7.4.x PREPARE statement

Geoffrey KRETZ <gk@4js.com> writes:

I was wondering when a PREPARE statement is check. (ie : is it normal
that the following statement doesn't return an error : PREPARE stmnt AS
"xxxxxxxxxxxxxxxx") ?

Hm?

regression=# PREPARE stmnt AS "xxxxxxxxxxxxxxxx";
ERROR: syntax error at or near ""xxxxxxxxxxxxxxxx"" at character 19
regression=#

regards, tom lane

In reply to: Tom Lane (#2)
Re: PGS 7.4.x PREPARE statement

Tom Lane wrote:

Geoffrey KRETZ <gk@4js.com> writes:

I was wondering when a PREPARE statement is check. (ie : is it normal
that the following statement doesn't return an error : PREPARE stmnt AS
"xxxxxxxxxxxxxxxx") ?

Hm?

regression=# PREPARE stmnt AS "xxxxxxxxxxxxxxxx";
ERROR: syntax error at or near ""xxxxxxxxxxxxxxxx"" at character 19
regression=#

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Thx Tom, I should have done a mistake while testing.

Geoffrey