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

INSERT not working on MariaDB when duplicate key error is raised #58

Open
BananaMasterz opened this issue Jul 28, 2023 · 0 comments
Open

Comments

@BananaMasterz
Copy link

When I run an INSERT query on on a table the has unique key (for the ID column for example) I get

MySQLProtocolException: Wrong first byte, while decoding getVariableEncInt

but when I run the same query in DBeaver for example, I get

Duplicate entry '1' for key 'PRIMARY'

which is the correct error.

Is this expected behavior? In other situations I get the a message describing what went wrong instead of failure to decode.

I am using MariaDB 10.11.4 on windows.

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

No branches or pull requests

1 participant