5 messages in com.mysql.lists.javaRe: ServerPreparedStatement & BatchUp...| From | Sent On | Attachments |
|---|---|---|
| Gokhan Demir | 16 Sep 2004 08:53 | |
| Mark Matthews | 16 Sep 2004 08:56 | |
| Gokhan Demir | 16 Sep 2004 09:21 | .txt |
| Gokhan Demir | 16 Sep 2004 17:44 | |
| Mark Matthews | 16 Sep 2004 18:05 |
| Subject: | Re: ServerPreparedStatement & BatchUpdateException![]() |
|---|---|
| From: | Mark Matthews (ma...@mysql.com) |
| Date: | 09/16/2004 08:56:42 AM |
| List: | com.mysql.lists.java |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Gokhan Demir wrote:
Hello,
I have a case, where the new serverside prepared statements fail to execute, whereas the old-style java driver prepared statements correctly executes. I suspect it might be due to a ';' character in an enclosed string, but I am not sure. Here is the stack trace with driver's extra debug info:
Query being executed when exception was thrown:
com.mysql.jdbc.ServerPreparedStatement[27] - INSERT INTO PBDCompany(mulCompanyId, muiSectorId, msCode, msKnownAs, msName, msOfficialName, mdtFounded, mulAddressId, mulInvoiceAddressId, mulMailAddressId, mulPersonId, mulContactId, msTaxNo, msTaxOffice, msCountryCode, msDescription, msExtProps, mulType, muiProcessId, muhStateId, mulUpdUserId, mdtUpdTime, mulInsUserId, mdtInsTime, mulUpdCnt, mulSrvUpdCnt) VALUES(10103, null, 'MCM', 'HELI AIR MONACO', 'HELI AIR MONACO', 'HELI AIR MONACO', '1976-01-01 00:00:00', 10103, null, null, null, 10081, null, null, 'MC', null, 'EXEC:Jacques Crovetto;', 0, 5, 1, NULL, NULL, 1, '2004-09-16 15:37:32', 0, 0)
2004-09-16 15:37:44,590 INFO [STDOUT] at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement. java:803)
2004-09-16 15:37:44,590 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStateme nt.java:759)
.. (some more)
Hope the above explains the situation.
More info on my environment:
Linux miranda.lan 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT 2004 i686 i686 i386 GNU/Linux
MySQL Ver 14.6 Distrib 4.1.4-gamma, for pc-linux (i686)
Connector/J 3.1.4-beta
j2sdk-1.4.2_05
(the same error also happens in Windows version of MySQL server 4.1.4-gamma.)
Regards,
Gokhan Demir
Gokhan,
Was that the _whole_ stack trace? I don't see the entire thing here, so I can't tell you what's going on. Please post the _entire_ stack trace with 'editorializing' it, even if it's long ;)
-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
iD8DBQFBSbfPtvXNTca6JD8RAlBjAJ44zR4igICI1PhubndlNXFepfhy5gCeJ/Y1 rUQlE0iQk070MaWqQgJHV/0= =lb+o -----END PGP SIGNATURE-----





.txt