Skip to content

Commit

Permalink
feat(postgres): fix interval literal
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Feb 5, 2023
1 parent 2ac97a1 commit c0fa933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/postgres/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _literal(t, op):
value = op.value

if dtype.is_interval():
return sa.text(f"INTERVAL '{value} {dtype.resolution}'")
return sa.literal_column(f"INTERVAL '{value} {dtype.resolution}'")
elif dtype.is_set():
return list(map(sa.literal, value))
# geo spatial data type
Expand Down

0 comments on commit c0fa933

Please sign in to comment.