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

--no commit message

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