Kevac Marko wrote:

Prepared statements are not executed, just parsed (simplified), so no,
it is not important for initialization statement to be before prepared
statements.

  Right; what I wondered was whether you needed to execute some
sort of "magic" initialization statement which would then allow
normal processing, including preparing regular statements, to proceed.

  From the bug report (thanks for that) I see your example is setting
character sets with MySQL, which I take it doesn't affect preparing
statements, but I'm not a MySQL expert.  Perhaps other DBs in certain
configurations might have initialization requirements that do affect
preparing statements?  Since I'm not an expert in all the different
DBs and their possible configurations, I just wanted to open the
subject for discussion.  It also seems to me that it doesn't hurt to
do the initializations first, just in case.

Chris.

--
GPG Key ID: 366A375B
GPG Key Fingerprint: 485E 5041 17E1 E2BB C263  E4DE C8E3 FA36 366A 375B

Reply via email to