-
Notifications
You must be signed in to change notification settings - Fork 286
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
fix: resolve edge case with varying shapes in multiple item inserts causing undefined
in parameters.
#1311
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Open in Stackblitz • kysely_koa_example
commit: |
Looking good otheriwse but: when inserting a single row, the value should actually be missing and not Most databases support |
Makes sense, |
Don't know. Maybe just a special case when |
6b7e19f
to
c22f2dd
Compare
c22f2dd
to
bb1ed4b
Compare
@koskimas let me know what you think 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
bb1ed4b
to
a6cccc7
Compare
a6cccc7
to
8811f39
Compare
Co-authored-by: Naor Peled <[email protected]>
Co-authored-by: Naor Peled <[email protected]>
Co-authored-by: Naor Peled <[email protected]>
4eedcd7
to
88549b4
Compare
undefined
in parameters.
Co-authored-by: Naor Peled <[email protected]>
Hey @naorpeled @koskimas 👋 The approved changes resolved the issue but were producing more sql than needed. Here's an added test case that reproduces #1310 output with those changes: I have reverted those changes and found the issue in: const hasMissingColumns = rowColumns.length < columns.size This check was When it is We need to count how many indexed columns the current row has and compare that to the indexed columns count. |
closes #1310