mysql.dart
mysql.dart copied to clipboard
INSERT not working on MariaDB when duplicate key error is raised
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.