Sometimes it fails to parse valid SQL leading to "Method executeUpdate cannot be used for query"
Hi,
Thank you for your message.
I worked out the bugs.
It will release it in the near future.
Hi,
A new version(1.2.2.v20101009) was released. Please try.
thank you.
Reply To zigen
Hi, A new version(1.2.2.v20101009) was released. Please try. thank you.
Thanks a lot, it works!
DBViewer sometimes fails to process a valid DB2 SQL correctly and the query fails with the dialog window "ZIGEN'S DBViewer Plugin" displaying the message "ibmdb2jcc1010410942 Method executeUpdate cannot be used for query.". At the same time there is an exception in the error log:
An example of such a query is:
Interestingly, if you either change the "1 = ..." to "1 IN ..." or if you remove the part "WHERE s.SCHEMANAME = 'SYSCAT '", it will execute correctly.
Notice that the query uses only standard DB2 views and thus you can try it for yourself by downloading the free DB2 Express-C.
DBViewer Plugin version: 1.1.0v20090121