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

Aliases for built-in data types can now be re-mapped.

上级 334374e6
...@@ -5,21 +5,17 @@ create domain integer as varchar; ...@@ -5,21 +5,17 @@ create domain integer as varchar;
create domain int as varchar; create domain int as varchar;
> ok > ok
create domain bit as int; create memory table test(id int);
> ok
create table test(id bit);
> ok > ok
script nodata nopasswords nosettings; script nodata nopasswords nosettings;
> SCRIPT > SCRIPT
> -------------------------------------------------- > --------------------------------------------------
> -- 0 = SELECT COUNT(*) FROM PUBLIC.TEST; > -- 0 = SELECT COUNT(*) FROM PUBLIC.TEST;
> CREATE CACHED TABLE PUBLIC.TEST( ID VARCHAR );
> CREATE DOMAIN BIT AS VARCHAR;
> CREATE DOMAIN INT AS VARCHAR; > CREATE DOMAIN INT AS VARCHAR;
> CREATE MEMORY TABLE PUBLIC.TEST( ID VARCHAR );
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN; > CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> rows: 5 > rows: 4
drop table test; drop table test;
> ok > ok
...@@ -27,9 +23,6 @@ drop table test; ...@@ -27,9 +23,6 @@ drop table test;
drop domain int; drop domain int;
> ok > ok
drop domain bit;
> ok
create table test(id identity, parent bigint, foreign key(parent) references(id)); create table test(id identity, parent bigint, foreign key(parent) references(id));
> ok > ok
......
...@@ -5,21 +5,17 @@ create domain integer as varchar; ...@@ -5,21 +5,17 @@ create domain integer as varchar;
create domain int as varchar; create domain int as varchar;
> ok > ok
create domain bit as int; create memory table test(id int);
> ok
create table test(id bit);
> ok > ok
script nodata nopasswords nosettings; script nodata nopasswords nosettings;
> SCRIPT > SCRIPT
> -------------------------------------------------- > --------------------------------------------------
> -- 0 = SELECT COUNT(*) FROM PUBLIC.TEST; > -- 0 = SELECT COUNT(*) FROM PUBLIC.TEST;
> CREATE CACHED TABLE PUBLIC.TEST( ID VARCHAR );
> CREATE DOMAIN BIT AS VARCHAR;
> CREATE DOMAIN INT AS VARCHAR; > CREATE DOMAIN INT AS VARCHAR;
> CREATE MEMORY TABLE PUBLIC.TEST( ID VARCHAR );
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN; > CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> rows: 5 > rows: 4
drop table test; drop table test;
> ok > ok
...@@ -27,9 +23,6 @@ drop table test; ...@@ -27,9 +23,6 @@ drop table test;
drop domain int; drop domain int;
> ok > ok
drop domain bit;
> ok
create table test(id identity, parent bigint, foreign key(parent) references(id)); create table test(id identity, parent bigint, foreign key(parent) references(id));
> ok > ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论