Subject: | Cannot determine which exec call will be used |
Moved from bug 41565:
As for using server-side prepare; one serious problem with the driver as
it stands is that the application writer can find it _very_ hard to
predict whether any given prepare()/bind_param()*/execute() sequence
will lead to the driver using prepare/execPrepared, execParams, or plain
exec when it comes to the execute call - and the handling of type
information is VERY different between those cases, to the extent that
many queries (especially ones involving function calls) will succeed or
fail according to which choice the driver makes. (There's also a
performance reason to prefer execParams (one roundtrip) over
prepare/execPrepared (two roundtrips) for statements that are only going
to be executed once.)