postgres-meta icon indicating copy to clipboard operation
postgres-meta copied to clipboard

Generated types incorrectly mark interval type as unknown

Open icopp opened this issue 8 months ago • 1 comments

Bug report

  • [X] I confirm this is a bug with Supabase, not with my own application.
  • [X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Interval columns aren't correctly inferred as strings.

To Reproduce

  • Create a table with an interval column
  • Run supabase gen types --lang=typescript --local
  • See that the interval column is generated as unknown

Expected behavior

The interval column should be generated as string.

Screenshots

n/a

System information

  • Version of supabase (not supabase-js): 2.20.5
  • Version of Node.js: 22.12.0

Additional context

The format of the string depends on SET intervalstyle, but it's always a string.

icopp avatar Apr 02 '25 18:04 icopp