提交 8bb736e7 authored 作者: Thomas Mueller's avatar Thomas Mueller

Creating a table with column data type NULL now works (even if not very useful).

上级 4af090a5
...@@ -3654,11 +3654,6 @@ public class Parser { ...@@ -3654,11 +3654,6 @@ public class Parser {
original = "VARCHAR_IGNORECASE"; original = "VARCHAR_IGNORECASE";
dataType = DataType.getTypeByName(original); dataType = DataType.getTypeByName(original);
} }
if (dataType.type == Value.NULL) {
// We do support NULL in the database meta data,
// but not actually when creating tables.
throw DbException.get(ErrorCode.UNKNOWN_DATA_TYPE_1, original);
}
if (regular) { if (regular) {
read(); read();
} }
......
...@@ -1031,18 +1031,6 @@ select t1.pk from t t1, t t2 where t1.pk = t2.attr order by t1.pk; ...@@ -1031,18 +1031,6 @@ select t1.pk from t t1, t t2 where t1.pk = t2.attr order by t1.pk;
drop table t; drop table t;
> ok > ok
CREATE TABLE T(A NULL);
> exception
CREATE TABLE T(A INT);
> ok
ALTER TABLE T ALTER COLUMN A NULL;
> exception
DROP TABLE T;
> ok
CREATE ROLE TEST_A; CREATE ROLE TEST_A;
> ok > ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论