mysql.dart icon indicating copy to clipboard operation
mysql.dart copied to clipboard

INSERT not working on MariaDB when duplicate key error is raised

Open BananaMasterz opened this issue 1 year ago • 0 comments

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.

BananaMasterz avatar Jul 28 '23 11:07 BananaMasterz