Add support for ODBC functions (#1585)

This commit is contained in:
Ifeanyi Ubah 2024-12-11 23:31:55 +01:00 committed by GitHub
parent 04271b0e4e
commit a13f8c6b93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 142 additions and 6 deletions

View file

@ -1212,6 +1212,7 @@ fn parse_delimited_identifiers() {
assert_eq!(
&Expr::Function(Function {
name: ObjectName(vec![Ident::with_quote('"', "myfun")]),
uses_odbc_syntax: false,
parameters: FunctionArguments::None,
args: FunctionArguments::List(FunctionArgumentList {
duplicate_treatment: None,
@ -1423,6 +1424,7 @@ fn test_alter_table_clustering() {
Expr::Identifier(Ident::with_quote('"', "c2")),
Expr::Function(Function {
name: ObjectName(vec![Ident::new("TO_DATE")]),
uses_odbc_syntax: false,
parameters: FunctionArguments::None,
args: FunctionArguments::List(FunctionArgumentList {
args: vec![FunctionArg::Unnamed(FunctionArgExpr::Expr(