After a query containing multiple CREATE TABLE statements Statement.getMoreResults() returns true
for second result (indicating the result is a result set) and Statement.getResultSet() then returns null. The getMoreResults() should be false and a getUpdateCount() should then return 0 (indicating an update count of 0 is the result).
The attached program demonstrates the bug. Correct output should show two update counts of zero. Actual output shows an update count of zero followed by a result set which is null.
Attached program works correctly with mysql-connector-java-5.1.42.
The problem also occurs for DROP TABLE statements.