Skip to content

Commit 2d6ce49

Browse files
small fix
1 parent 1a295e9 commit 2d6ce49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sqlglot/dialects/duckdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ class DuckDB(Dialect):
10571057

10581058
INVERSE_TIME_MAPPING = {
10591059
"%e": "%-d", # BigQuery's space-padded day (%e) -> DuckDB's no-padding day (%-d)
1060-
"%:z": "%z", # In DuckDB %z can represent ±HH:MM, ±HHMM, or ±HH.
1060+
"%:z": "%z", # In DuckDB %z can represent ±HH:MM, ±HHMM, or ±HH.
10611061
"%-z": "%z",
10621062
}
10631063

sqlglot/dialects/snowflake.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,9 @@ class Snowflake(Dialect):
721721
"TZHTZM": "%z",
722722
"tzhtzm": "%z",
723723
"TZH:TZM": "%:z", # internal representation for ±HH:MM
724-
"tzh:tzm": "%:z",
724+
"tzh:tzm": "%:z",
725725
"TZH": "%-z", # internal representation ±HH
726-
"tzh": "%-z",
726+
"tzh": "%-z",
727727
'"T"': "T", # remove the optional double quotes around the separator between the date and time
728728
# Seems like Snowflake treats AM/PM in the format string as equivalent,
729729
# only the time (stamp) value's AM/PM affects the output

0 commit comments

Comments
 (0)