Subject | Re: [ib-support] setNull doesn't work |
---|---|
Author | Martijn Tonies |
Post date | 2002-07-31T08:10:10Z |
Hi,
purpose of the PREPAREDStatement - when you change the
statement, you need to re-prepare it ... This will clear current
parameter bindings.
statement and when not to. In this case, if your SQL is totally
dynamic, tell me: what is the use of a PreparedStatement??
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
> I've understand the matter. But I think that the driver can parseNo, it shouldn't. Parsing and changing the statement defeats the
> the statement to change the = ? in is null when i set a value with setNull
purpose of the PREPAREDStatement - when you change the
statement, you need to re-prepare it ... This will clear current
parameter bindings.
> It's true that the jdbc specification it's clear but It's a logical thinkYou're the programmer - you should know when to use a prepared
> execute this parsing in where condition case.
> In this case the PreapredStatement is useless if you have any possibility
> to have a null value in where condition (for select, update, delete)
statement and when not to. In this case, if your SQL is totally
dynamic, tell me: what is the use of a PreparedStatement??
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."