提交 5caf19d4 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 cb967665
...@@ -28,7 +28,8 @@ public class TestPreparedStatement extends TestBase { ...@@ -28,7 +28,8 @@ public class TestPreparedStatement extends TestBase {
deleteDb("preparedStatement"); deleteDb("preparedStatement");
Connection conn = getConnection("preparedStatement"); Connection conn = getConnection("preparedStatement");
testCancelReuse(conn); testUnknownDataType(conn);
testCancelReuse(conn);
testCoalesce(conn); testCoalesce(conn);
testPreparedStatementMetaData(conn); testPreparedStatementMetaData(conn);
testDate(conn); testDate(conn);
...@@ -50,6 +51,13 @@ public class TestPreparedStatement extends TestBase { ...@@ -50,6 +51,13 @@ public class TestPreparedStatement extends TestBase {
conn.close(); conn.close();
} }
private void testUnknownDataType(Connection conn) throws Exception {
PreparedStatement prep = conn.prepareStatement(
"SELECT * FROM (SELECT ? FROM DUAL)");
prep.setInt(1, 1);
prep.execute();
}
private void testCancelReuse(Connection conn) throws Exception { private void testCancelReuse(Connection conn) throws Exception {
conn.createStatement().execute("CREATE ALIAS YIELD FOR \"java.lang.Thread.yield\""); conn.createStatement().execute("CREATE ALIAS YIELD FOR \"java.lang.Thread.yield\"");
final PreparedStatement prep = conn.prepareStatement("SELECT YIELD() FROM SYSTEM_RANGE(1, 1000000) LIMIT ?"); final PreparedStatement prep = conn.prepareStatement("SELECT YIELD() FROM SYSTEM_RANGE(1, 1000000) LIMIT ?");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论