Skip to content

Commit

Permalink
Fix unsupported message in datediff_sql (#4174)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewsch-db authored Sep 27, 2024
1 parent 7af33a2 commit 5593bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlglot/dialects/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def datediff_sql(self, expression: exp.DateDiff) -> str:
elif unit == "NANOSECOND":
sql = f"{sql} * 8640000000000.0"
else:
self.unsupported("DATEDIFF unsupported for '{unit}'.")
self.unsupported(f"DATEDIFF unsupported for '{unit}'.")

return f"CAST({sql} AS INTEGER)"

Expand Down

0 comments on commit 5593bf9

Please sign in to comment.