Skip to content

Commit

Permalink
use Ident::real_value
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
TennyZhuang committed Mar 16, 2023
1 parent 58711ac commit bea162b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/handler/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub(super) fn handle_set_time_zone(
SetTimeZoneValue::Local => iana_time_zone::get_timezone()
.map_err(|e| ErrorCode::InternalError(format!("Failed to get local time zone: {}", e))),
SetTimeZoneValue::Default => Ok("UTC".to_string()),
SetTimeZoneValue::Ident(ident) => Ok(ident.real_value()),
SetTimeZoneValue::Literal(Value::DoubleQuotedString(s))
| SetTimeZoneValue::Literal(Value::SingleQuotedString(s)) => Ok(s),
_ => Ok(value.to_string()),
Expand Down

0 comments on commit bea162b

Please sign in to comment.