-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: querying on postgres interval
type returns PostgresInterval
, not string
as inferred.
#1542
Comments
above problem occurs on
but not on
Second query returns somethings like |
Hello, @zolboo-gtn! Do you use neon driver? |
should be fixed in |
I still get this issue, on 0.30.8 with neon driver |
Hey, @n3oney! You might use |
Yep, neon-http. withdrawalFrequency: interval("withdrawal_frequency", {
fields: "day",
})
.$type<{ days: number }>()
.notNull()
.default(sql`(INTERVAL '7 days')`), |
Got it @n3oney. It was fixed only for |
I'm still experiencing this issue on on drizzle-orm 0.30.9 and neon serverless 0.9.1. |
What version of
drizzle-orm
are you using?0.29.0
What version of
drizzle-kit
are you using?0.20.4
Describe the Bug
Querying above table returns
not inferred type
I tried setting
intervalstyle
asiso_8601
on the table, but had no effect.Expected behavior
Above setup returns
string
, something likeP1Y2M3DT4H5M6S
.Environment & setup
No response
The text was updated successfully, but these errors were encountered: