Skip to content
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

Fixes #319. Inserting multiple rows with default values #468

merged 1 commit into from Sep 8, 2014


Copy link

@vschoettke vschoettke commented Sep 8, 2014

If an array with one empty object or null etc. is specified knex will now insert the default value correctly for all dialects.

If an array with multiple empty object or null specified knex will now:

  • insert multiple rows with default values for MySQL and derivatives
  • insert multiple rows with default values for Oracle and PostgreSQL if a returning column is specified, otherwise fail
  • fail with SQLite.
vschoettke added a commit that referenced this pull request Sep 8, 2014
Fixes #319. Inserting multiple rows with default values
@vschoettke vschoettke merged commit eec5f3b into knex:master Sep 8, 2014
1 check was pending
1 check was pending
continuous-integration/travis-ci The Travis CI build is in progress
@vschoettke vschoettke deleted the vschoettke:fix-insert-without-values branch Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant