Fix up Expr::TypedString tests to use ValueWithSpan

This commit is contained in:
Joshua McQuistan 2025-07-02 14:47:33 +01:00
parent 30202109ac
commit db16ff8916
4 changed files with 152 additions and 42 deletions

View file

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