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

Fixed a documentation error regarding Multiple insert #737

Merged
merged 1 commit into from Nov 27, 2018
Merged

Fixed a documentation error regarding Multiple insert #737

merged 1 commit into from Nov 27, 2018

Conversation

tempcke
Copy link
Contributor

@tempcke tempcke commented Nov 27, 2018

the current docs show that you can pass each row to be inserted as additional params to the query method, however when you try to do that it errors. In looking up this error here: https://forum.nette.org/en/21412-nette-database-insert-multiple-rows-in-one-query I realized that the multiple rows need to be passed as an array in the second argument which solved the problem.

the current docs show that you can pass each row to be inserted as additional params to the query method, however when you try to do that it errors.  In looking up this error here: https://forum.nette.org/en/21412-nette-database-insert-multiple-rows-in-one-query I realized that the multiple rows need to be passed as an array in the second argument which solved the problem.
@dg
Copy link
Member

dg commented Nov 27, 2018

Thanks

@dg dg merged commit 31da458 into nette:doc-2.4 Nov 27, 2018
dg pushed a commit that referenced this pull request Nov 27, 2018
the current docs show that you can pass each row to be inserted as additional params to the query method, however when you try to do that it errors.  In looking up this error here: https://forum.nette.org/en/21412-nette-database-insert-multiple-rows-in-one-query I realized that the multiple rows need to be passed as an array in the second argument which solved the problem.
@tempcke tempcke deleted the patch-1 branch November 27, 2018 18:47
dg pushed a commit that referenced this pull request Dec 27, 2021
the current docs show that you can pass each row to be inserted as additional params to the query method, however when you try to do that it errors.  In looking up this error here: https://forum.nette.org/en/21412-nette-database-insert-multiple-rows-in-one-query I realized that the multiple rows need to be passed as an array in the second argument which solved the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants