提交 22c5d43d authored 作者: Thomas Mueller's avatar Thomas Mueller

Fixed the Oracle mode: Oracle allows multiple rows with NULL in a unique index.

上级 9b52ba06
...@@ -35,7 +35,7 @@ public class TestCompatibility extends TestBase { ...@@ -35,7 +35,7 @@ public class TestCompatibility extends TestBase {
private void testUniqueIndexSingleNull() throws Exception { private void testUniqueIndexSingleNull() throws Exception {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
String[] modes = new String[] { "PostgreSQL", "MySQL", "HSQLDB", "MSSQLServer", "Derby", "Oracle", "Regular" }; String[] modes = new String[] { "PostgreSQL", "MySQL", "HSQLDB", "MSSQLServer", "Derby", "Oracle", "Regular" };
String multiNull = "PostgreSQL,MySQL,Regular"; String multiNull = "PostgreSQL,MySQL,Oracle,Regular";
for (int i = 0; i < modes.length; i++) { for (int i = 0; i < modes.length; i++) {
String mode = modes[i]; String mode = modes[i];
stat.execute("SET MODE " + mode); stat.execute("SET MODE " + mode);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论