Make TypedString preserve quote style (#1679)

This commit is contained in:
Paul Grau 2025-01-31 08:04:41 +02:00 committed by GitHub
parent aeaafbe6e4
commit 447142c6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 132 additions and 55 deletions

View file

@ -4638,7 +4638,7 @@ fn parse_at_time_zone() {
left: Box::new(Expr::AtTimeZone {
timestamp: Box::new(Expr::TypedString {
data_type: DataType::Timestamp(None, TimezoneInfo::None),
value: "2001-09-28 01:00".to_owned(),
value: Value::SingleQuotedString("2001-09-28 01:00".to_string()),
}),
time_zone: Box::new(Expr::Cast {
kind: CastKind::DoubleColon,