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
merged 1 commit into from Sep 8, 2014

Conversation

Projects
None yet
1 participant
@vschoettke
Collaborator

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 etc.is 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

Merge pull request #468 from vschoettke/fix-insert-without-values
Fixes #319. Inserting multiple rows with default values

@vschoettke vschoettke merged commit eec5f3b into tgriesser:master Sep 8, 2014

1 check was pending

continuous-integration/travis-ci The Travis CI build is in progress
Details

@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