Hello.

It looks like you're trying to execute multiple commands at once and you 
have a table value constructor after some data definition command:

try (Connection c = DriverManager.getConnection("jdbc:h2:mem:1")) {
    c.createStatement().execute("CREATE TABLE TEST(); VALUES 1");
}

H2 returns result only from the first command, others are executed, but 
their results aren't returned, so such combination of commands has very low 
meaning.

Anyway, there was a bug in H2. It should be fixed in current H2. You can 
build H2 from the current sources to test it.
https://github.com/h2database/h2database
https://h2database.com/html/build.html#building

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/33586aab-2192-4859-9969-07d9f299f96eo%40googlegroups.com.

Reply via email to