MySQLite serious bug

Forum related to version 6.1.5 of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
ErikL
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 28.12.2005, 16:13

MySQLite serious bug

Post by ErikL »

When using a text-blob field a serious error occurs when the field contains
#0 characters.

So, when you have an update-statement containing such a field, the
sql statement is truncated at the first #0 character( by the string to pchar conversion)
and the resulting sql is missing the where part.
The sad result is then that instead of updating 1 record, ALL records in the table are updated!

I tracked the error down to function

TZSQLitePreparedStatement.GetEscapeString(Value: string): string;

in unit ZDbcSqLiteStatement, which should remove all #0 characters from 'value'


Thanks, ErikL
Post Reply