Subject | Re: JayBird: Problems with Prepared Statements |
---|---|
Author | pifproject |
Post date | 2005-09-06T15:51:19Z |
> Just type few words - Yahoo might decideOkay, I'll try to formulate something as a description.
> to remove their message database.
> Then why do you need SQLstatement parameter later?I also display that INSERT String as information in the System.out,
> For now I can imagine only one usage for it - take
> an object (instance of java.sql.Statement interface)
> and display it to the user.
but the conversion is primarily needed in order to have a single
'statementExecutor(String sqlStatement)' method, which I can also
utilize for other non-prepares SQL statements.
> But then, if you have a single method that takes stringIt happened that the PostgreSQL driver adds some additional characters
> as parameter, why do you need to call toString() method
> to return the SQL string that you just passed?
before the "INTERT INTO ..." (may sound strange, but that was what
happened) and I have to cut those out before passing the statement for
execution.
> If you expect the toString() method to convert parameterI do not think that I expect that, I want to convert the prepared
> marks ('?') into the specified string values - that's
> another story. It was already discussed here
statement to String after the '?'s have been substituted with their
respective values.