Closed GoogleCodeExporter closed 9 years ago
This works for me (I can't reproduce the problem):
public static void main(String... args) throws Exception {
Class.forName("org.h2.Driver");
DeleteDbFiles.execute("~/temp", "test", true);
Connection conn;
conn = DriverManager.getConnection("jdbc:h2:~/temp/test");
PreparedStatement stmt = conn.prepareStatement(
"select (cast(? as varchar) || ? || ?) from dual");
stmt.setInt(1, 1);
stmt.setString(2, "ab");
stmt.setInt(3, 45);
ResultSet rs = stmt.executeQuery();
while (rs.next()) {
System.out.println(rs.getString(1));
}
conn.close();
}
Original comment by thomas.t...@gmail.com
on 20 Aug 2011 at 10:46
Thanks for looking into this. I'll check again, maybe there is some piece of
information missing from my bug report
Original comment by lukas.eder@gmail.com
on 22 Aug 2011 at 8:12
Original issue reported on code.google.com by
lukas.eder@gmail.com
on 13 Jul 2011 at 5:40