Skip to content

Commit b00f8d2

Browse files
committed
readyset-sql: Convert AT TIME ZONE
Pretty straightforward. Change-Id: Iaa925fa731843752e85dbe1a7c5cfe9ad5c2aada
1 parent 35ffacd commit b00f8d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readyset-sql/src/ast/expression.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,11 @@ impl TryFromDialect<sqlparser::ast::Expr> for Expr {
735735
AtTimeZone {
736736
timestamp,
737737
time_zone,
738-
} => not_yet_implemented!("{timestamp:?} AT TIMEZONE {time_zone:?}"),
738+
} => Ok(Self::BinaryOp {
739+
lhs: timestamp.try_into_dialect(dialect)?,
740+
op: BinaryOperator::AtTimeZone,
741+
rhs: time_zone.try_into_dialect(dialect)?,
742+
}),
739743
Between {
740744
expr,
741745
negated,

0 commit comments

Comments
 (0)