提交 92779e71 authored 作者: Andrei Tokar's avatar Andrei Tokar

test added

上级 9da58a15
......@@ -108,3 +108,20 @@ SET BUILTIN_ALIAS_OVERRIDE=0;
DROP SCHEMA TEST_SCHEMA RESTRICT;
> ok
-- test for issue #1531
CREATE TABLE TEST (ID BIGINT, VAL VARCHAR2(10)) AS SELECT x,'val'||x FROM SYSTEM_RANGE(1,2);
> ok
CREATE ALIAS FTBL AS $$ ResultSet t(Connection c) throws SQLException {return c.prepareStatement("SELECT ID, VAL FROM TEST").executeQuery();} $$;
> ok
CREATE OR REPLACE VIEW V_TEST (ID, VAL) AS (SELECT * FROM FTBL());
> ok
SELECT * FROM V_TEST;
> ID VAL
> -- ----
> 1 val1
> 2 val2
> rows: 2
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论