[BUG]: Using sql.placeholder
with limit
and/or offset
for a prepared statement produces TS error
#2146
Labels
bug
Something isn't working
What version of
drizzle-orm
are you using?0.30.7
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
Given the following code,
TypeScript will throw an error on the use of
sql.placeholder
for bothlimit()
andoffset()
functions. The exact message is:A workaround is to use the
as never
assertion to defer type inference and successfully compile.Expected behavior
No typescript error when using
sql.placeholder
withlimit
and/oroffset
for a prepared statements.Environment & setup
No response
The text was updated successfully, but these errors were encountered: