DBZ-5708 MySqlConnector parse create view statement failed
This commit is contained in:
parent
62a6a1abb9
commit
348c13b6f8
@ -265,8 +265,12 @@ createView
|
||||
)?
|
||||
ownerStatement?
|
||||
(SQL SECURITY secContext=(DEFINER | INVOKER))?
|
||||
VIEW fullId ('(' uidList ')')? AS withClause? selectStatement
|
||||
(WITH checkOption=(CASCADED | LOCAL)? CHECK OPTION)?
|
||||
VIEW fullId ('(' uidList ')')? AS
|
||||
(
|
||||
'(' withClause? selectStatement ')'
|
||||
|
|
||||
withClause? selectStatement (WITH checkOption=(CASCADED | LOCAL)? CHECK OPTION)?
|
||||
)
|
||||
;
|
||||
|
||||
createSequence
|
||||
|
@ -296,6 +296,7 @@ create algorithm = merge view my_view2(col1, col2) as select * from t2 with chec
|
||||
create or replace definer = 'ivan'@'%' view my_view3 as select count(*) from t3;
|
||||
create or replace definer = current_user sql security invoker view my_view4(c1, 1c, _, c1_2)
|
||||
as select * from (t1 as tt1, t2 as tt2) inner join t1 on t1.col1 = tt1.col1;
|
||||
create view v_some_table as (with a as (select * from some_table) select * from a);
|
||||
|
||||
#end
|
||||
#begin
|
||||
|
Loading…
Reference in New Issue
Block a user