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

The ResultSetMetaData methods getSchemaName and getTableName could return null…

The ResultSetMetaData methods getSchemaName and getTableName could return null instead of "" (an empty string) as specified in the JDBC API.
上级 3a290ab8
......@@ -133,7 +133,7 @@ public class TestCompatibility extends TestBase {
String tableName = meta.getTableName(1);
if ("ID".equals(columnName) && "TEST".equals(tableName)) {
assertTrue(mode + " mode should not support columnAlias", columnAlias.indexOf(mode) >= 0);
} else if ("I".equals(columnName) && tableName == null) {
} else if ("I".equals(columnName) && tableName.equals("")) {
assertTrue(mode + " mode should support columnAlias", columnAlias.indexOf(mode) < 0);
} else {
fail();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论