mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 13:58:15 +00:00
feat: Parse special keywords as functions (current_user, user, etc) (#561)
* feat: Parse special keywors as functions (current_user, user, etc) * explain special field
This commit is contained in:
parent
b6e36ad760
commit
54a29e872d
6 changed files with 111 additions and 17 deletions
|
@ -686,7 +686,8 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
Expr::Identifier(Ident::new("description"))
|
||||
))],
|
||||
over: None,
|
||||
distinct: false
|
||||
distinct: false,
|
||||
special: false,
|
||||
})
|
||||
},
|
||||
Assignment {
|
||||
|
@ -697,7 +698,8 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
Expr::Identifier(Ident::new("perm_create"))
|
||||
))],
|
||||
over: None,
|
||||
distinct: false
|
||||
distinct: false,
|
||||
special: false,
|
||||
})
|
||||
},
|
||||
Assignment {
|
||||
|
@ -708,7 +710,8 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
Expr::Identifier(Ident::new("perm_read"))
|
||||
))],
|
||||
over: None,
|
||||
distinct: false
|
||||
distinct: false,
|
||||
special: false,
|
||||
})
|
||||
},
|
||||
Assignment {
|
||||
|
@ -719,7 +722,8 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
Expr::Identifier(Ident::new("perm_update"))
|
||||
))],
|
||||
over: None,
|
||||
distinct: false
|
||||
distinct: false,
|
||||
special: false,
|
||||
})
|
||||
},
|
||||
Assignment {
|
||||
|
@ -730,7 +734,8 @@ fn parse_insert_with_on_duplicate_update() {
|
|||
Expr::Identifier(Ident::new("perm_delete"))
|
||||
))],
|
||||
over: None,
|
||||
distinct: false
|
||||
distinct: false,
|
||||
special: false,
|
||||
})
|
||||
},
|
||||
])),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue