mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-06 23:38:03 +00:00
Add ODBC escape syntax support for time expressions (#1953)
This commit is contained in:
parent
97a5b61a73
commit
bde269b56f
7 changed files with 259 additions and 110 deletions
|
@ -327,13 +327,14 @@ fn data_type_timestamp_ntz() {
|
|||
// Literal
|
||||
assert_eq!(
|
||||
databricks().verified_expr("TIMESTAMP_NTZ '2025-03-29T18:52:00'"),
|
||||
Expr::TypedString {
|
||||
Expr::TypedString(TypedString {
|
||||
data_type: DataType::TimestampNtz,
|
||||
value: ValueWithSpan {
|
||||
value: Value::SingleQuotedString("2025-03-29T18:52:00".to_owned()),
|
||||
span: Span::empty(),
|
||||
}
|
||||
}
|
||||
},
|
||||
uses_odbc_syntax: false
|
||||
})
|
||||
);
|
||||
|
||||
// Cast
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue