Code: Select all
ZPlainMySql5.pas
Line 302 : MYSQL_ROW = array[00..$ff] of PChar; // maximum Field 256
Change To
Line 302 : MYSQL_ROW = array[0000..$ffff] of PChar; // maximum Field 65536
Moderators: gto, cipto_kh, EgonHugeist
Code: Select all
ZPlainMySql5.pas
Line 302 : MYSQL_ROW = array[00..$ff] of PChar; // maximum Field 256
Change To
Line 302 : MYSQL_ROW = array[0000..$ffff] of PChar; // maximum Field 65536
Can anybody who knows more about memory issues confirm this is a good or bad idea? Would we multiply memory usage by a huge factor?
Code: Select all
MYSQL_METHODS = record
[...]
fetch_lengths: procedure(_to: PLongInt; column: MYSQL_ROW;
field_count: Cardinal);
[...]
end;
Code: Select all
MYSQL_ROW = ppchar;
Code: Select all
// Result := ZPlainMySql5.PMYSQL_ROW(ROW)[Offset];
Result := ppchar(ptruint(ZPlainMySql5.PMYSQL_ROW(ROW))+Offset*sizeof(pchar))^;