dart-drivers / mysql

MySQL Connector for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BLOB in prepared statements gets the length wrong...

jdalberg opened this issue · comments

in src/prepared_statements/binary_data_packet.dart

in the method _readFile on the FIELD_TYPE_BLOB section, you determine the length by a call to buffer.readByte, thats a mistake, since lengths of BLOB fields can be quite a large amount larger than a byte ;)

I have tested using buffer.readLengthCodeBinary() instead, and that seems to work better ;)