File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,6 @@ impl<'a> Parser<'a> {
55
55
self . expect_keyword ( Keyword :: ON ) ?;
56
56
let table_name = self . parse_object_name ( false ) ?;
57
57
58
- let to = if self . parse_keyword ( Keyword :: TO ) {
59
- Some ( self . parse_comma_separated ( |p| p. parse_owner ( ) ) ?)
60
- } else {
61
- None
62
- } ;
63
-
64
58
if self . parse_keyword ( Keyword :: RENAME ) {
65
59
self . expect_keyword ( Keyword :: TO ) ?;
66
60
let new_name = self . parse_identifier ( false ) ?;
@@ -70,6 +64,12 @@ impl<'a> Parser<'a> {
70
64
operation : AlterPolicyOperation :: Rename { new_name } ,
71
65
} )
72
66
} else {
67
+ let to = if self . parse_keyword ( Keyword :: TO ) {
68
+ Some ( self . parse_comma_separated ( |p| p. parse_owner ( ) ) ?)
69
+ } else {
70
+ None
71
+ } ;
72
+
73
73
let using = if self . parse_keyword ( Keyword :: USING ) {
74
74
self . expect_token ( & Token :: LParen ) ?;
75
75
let expr = self . parse_expr ( ) ?;
You can’t perform that action at this time.
0 commit comments