File tree 2 files changed +11
-1
lines changed
crates/pgt_statement_splitter/src
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,16 @@ mod tests {
154
154
. expect_statements ( vec ! [ "select case when select 2 then 1 else 0 end" ] ) ;
155
155
}
156
156
157
+ #[ test]
158
+ fn with_security_invoker ( ) {
159
+ Tester :: from (
160
+ "create view api.my_view with (security_invoker) as select id from public.my_table;" ,
161
+ )
162
+ . expect_statements ( vec ! [
163
+ "create view api.my_view with (security_invoker) as select id from public.my_table;" ,
164
+ ] ) ;
165
+ }
166
+
157
167
#[ test]
158
168
fn create_trigger ( ) {
159
169
Tester :: from ( "alter table appointment_status add constraint valid_key check (private.strip_special_chars(key) = key and length(key) > 0 and length(key) < 60);
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use super::{Parser, common::unknown};
5
5
pub ( crate ) fn create ( p : & mut Parser ) {
6
6
p. expect ( SyntaxKind :: Create ) ;
7
7
8
- unknown ( p, & [ ] ) ;
8
+ unknown ( p, & [ SyntaxKind :: With ] ) ;
9
9
}
10
10
11
11
pub ( crate ) fn alter ( p : & mut Parser ) {
You can’t perform that action at this time.
0 commit comments