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

PK violation not properly reported #21

Closed
arthrarnld opened this issue May 17, 2018 · 3 comments
Closed

PK violation not properly reported #21

arthrarnld opened this issue May 17, 2018 · 3 comments
Labels

Comments

@arthrarnld
Copy link

When trying to bulk insert multiple rows, the driver will return error unexpected part kind partKind(x), x being an integer. For example, using a two-table column where the first one is a primary key:

stmt.Exec("0", "ABC")
stmt.Exec("1", "DEF")
stmt.Exec("2", "GHI")
stmt.Exec() // no error

stmt.Exec("0", "ABC")
stmt.Exec("1", "DEF")
stmt.Exec("2", "GHI")
stmt.Exec() // partKind error

The last line will produce the part kind error instead of reporting Primary Key violation. In our actual software, we're also facing the issue that the table turns out empty, even though it should contain the 3 rows inserted by the first four lines. I could not, however, reproduce this in an isolated Go source.

@stfnmllr stfnmllr added the bug label May 18, 2018
@stfnmllr
Copy link
Contributor

we are going to double check and provide a fix as soon as possible

@stfnmllr
Copy link
Contributor

The first issue should be fixed with the latest version 0.12.0. For the second issue we would need some more information to reproduce - please open a new ticket, if this is going to be available.

@arthrarnld
Copy link
Author

Wonderful. Thank you, Stefan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants