提交 a5ad4a8e authored 作者: httpdigest's avatar httpdigest

Disallow BLOB type in PostgreSQL mode

上级 d4344eec
...@@ -282,6 +282,7 @@ public class Mode { ...@@ -282,6 +282,7 @@ public class Mode {
disallowedTypes.add("NUMBER"); disallowedTypes.add("NUMBER");
disallowedTypes.add("IDENTITY"); disallowedTypes.add("IDENTITY");
disallowedTypes.add("TINYINT"); disallowedTypes.add("TINYINT");
disallowedTypes.add("BLOB");
mode.disallowedTypes = disallowedTypes; mode.disallowedTypes = disallowedTypes;
add(mode); add(mode);
......
...@@ -278,7 +278,7 @@ public class TestCompatibility extends TestBase { ...@@ -278,7 +278,7 @@ public class TestCompatibility extends TestBase {
/* --------- Disallowed column types --------- */ /* --------- Disallowed column types --------- */
String[] DISALLOWED_TYPES = {"NUMBER", "IDENTITY", "TINYINT"}; String[] DISALLOWED_TYPES = {"NUMBER", "IDENTITY", "TINYINT", "BLOB"};
for (String type : DISALLOWED_TYPES) { for (String type : DISALLOWED_TYPES) {
stat.execute("DROP TABLE IF EXISTS TEST"); stat.execute("DROP TABLE IF EXISTS TEST");
try { try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论