-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kevin A. Burton wrote:
Quote:
Just an idea... not sure if this breaks the JDBC spec.
If you call addBatch() on a PreparedStatement... then call
executeUpdate... instead of executeBatch... shouldn't it throw an
Exception.
Either that or if profileSql=true then it should log a warning.
Kevin |
Neither is required by the JDBC spec. We'll look at adding this to the
'usageAdvisor' feature as a warning, but there should be absolutely
nothing wrong with calling executeUpdate() before executeBatch(), unless
that's not what _you_ wanted to do (i.e. an application-level error).
Regards,
-Mark
- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com
MySQL Guide to Lower TCO
http://www.mysql.com/it-resources/white-papers/tco.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBCC5OtvXNTca6JD8RAqA5AKCpuD19EO9gaRxnN+jEet /BpqOasQCeIMqO
mhGyYP/IKBdrhMbjNhOD9YU=
=kX9E
-----END PGP SIGNATURE-----
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe: http://lists.mysql.com/java?unsub=my...ie.nctu.edu.tw