提交 d17a5e48 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix test cases.

上级 eb937cbe
...@@ -33,13 +33,13 @@ public class TestNativeSQL extends TestBase { ...@@ -33,13 +33,13 @@ public class TestNativeSQL extends TestBase {
"SELECT '{fn ABS(1)}' FROM TEST", "SELECT '{fn ABS(1)}' FROM TEST",
"SELECT {d '2001-01-01'} FROM TEST", "SELECT {d '2001-01-01'} FROM TEST",
"SELECT '2001-01-01' FROM TEST", "SELECT d '2001-01-01' FROM TEST",
"SELECT {t '20:00:00'} FROM TEST", "SELECT {t '20:00:00'} FROM TEST",
"SELECT '20:00:00' FROM TEST", "SELECT t '20:00:00' FROM TEST",
"SELECT {ts '2001-01-01 20:00:00'} FROM TEST", "SELECT {ts '2001-01-01 20:00:00'} FROM TEST",
"SELECT '2001-01-01 20:00:00' FROM TEST", "SELECT ts '2001-01-01 20:00:00' FROM TEST",
"SELECT {fn CONCAT('{fn x}','{oj}')} FROM TEST", "SELECT {fn CONCAT('{fn x}','{oj}')} FROM TEST",
"SELECT CONCAT('{fn x}','{oj}') FROM TEST", "SELECT CONCAT('{fn x}','{oj}') FROM TEST",
......
...@@ -139,10 +139,12 @@ public class TestPreparedStatement extends TestBase { ...@@ -139,10 +139,12 @@ public class TestPreparedStatement extends TestBase {
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, meta). assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, meta).
unwrap(Object.class); unwrap(Object.class);
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn). assertTrue(conn.isWrapperFor(Object.class));
isWrapperFor(Object.class); assertTrue(conn.isWrapperFor(Connection.class));
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn). assertFalse(conn.isWrapperFor(String.class));
unwrap(Object.class); assertTrue(conn == conn.unwrap(Object.class));
assertTrue(conn == conn.unwrap(Connection.class));
assertThrows(ErrorCode.INVALID_VALUE_2, conn).unwrap(String.class);
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn). assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn).
createSQLXML(); createSQLXML();
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn). assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, conn).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论