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
What you expected to happen:
IDs to be set in array of objects after calling CreateMany()
How to reproduce it (as minimally and precisely as possible): CreateMany() any array of objects. Print out the IDs, which will remain 0.
Anything else we need to know?: https://stackoverflow.com/a/5876411 seems to provide a solution: INSERT INTO my_table VALUES ('a'), ('b'), ('c') RETURNING id;
Environment:
go-sdk version: v1.1.1
go version (e.g go version): go version go1.12.12 darwin/amd64
OS (e.g: cat /etc/os-release): uname -mrsv -> Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
Others:
The text was updated successfully, but these errors were encountered:
dqu123
changed the title
db.Connection.CreateMany should set ID
db.Connection.CreateMany should set IDs
Nov 5, 2019
What happened:
![image](https://user-images.githubusercontent.com/7023570/68170205-bceb8280-ff23-11e9-99d2-b0883527ea1e.png)
What you expected to happen:
IDs to be set in array of objects after calling
CreateMany()
How to reproduce it (as minimally and precisely as possible):
CreateMany()
any array of objects. Print out the IDs, which will remain0
.Anything else we need to know?:
https://stackoverflow.com/a/5876411 seems to provide a solution:
INSERT INTO my_table VALUES ('a'), ('b'), ('c') RETURNING id;
Environment:
go-sdk version:
v1.1.1
go version (e.g
go version
):go version go1.12.12 darwin/amd64
OS (e.g:
cat /etc/os-release
):uname -mrsv
->Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
Others:
The text was updated successfully, but these errors were encountered: