You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a few hours I am trying to debug a non trivial problem
D1_ERROR: too many SQL variables
I found that generation of kysely-d1 is using the rest operator .bind(...data) therefore from
array of objects i get one single array which is flat.
From this point D1 will fail because I have suddenly 100+ params
kysely-d1/src/index.ts
Line 104 in ba48112
Context
For a few hours I am trying to debug a non trivial problem
I found that generation of
kysely-d1
is using the rest operator.bind(...data)
therefore fromarray of objects i get one single array which is flat.
From this point D1 will fail because I have suddenly
100+
paramsTo reproduce
create a big table
try to do a insert with 10 items
Which produces sql like this
and params will be
To fix
Most possible adapt
https://developers.cloudflare.com/d1/platform/client-api/#batch-statements
?The text was updated successfully, but these errors were encountered: