TZQuery MAX Fields
Posted: 20.10.2009, 16:57
Hello:
My question is simple. I am using Delphi 6, latest Service Packs.
MySQL Version 5.0.
and Zeos 6.6.5
I have no problem running TZQuery for queries with less than 256 fields. But when I get to a TZQuery that is more than 256 fields I get an ERangeError with Message 'Range Check Error' I have traced the problem to this line of code in the ZPlainMySQLDriver.pas:
Result := ZPlainMySql41.PMYSQL_ROW(ROW)[Offset]; into this context of code:
function TZMySQL41PlainDriver.GetFieldData(Row: PZMySQLRow;
Offset: Cardinal): PChar;
begin
Result := ZPlainMySql41.PMYSQL_ROW(ROW)[Offset];
end;
I am probably missing a constant to set up the MAX number of fields returned by the TZQuery. Does anyone knows where i can set this constant or anyone have an idea what could be happening?
Thanks in Advance,
Pablo
My question is simple. I am using Delphi 6, latest Service Packs.
MySQL Version 5.0.
and Zeos 6.6.5
I have no problem running TZQuery for queries with less than 256 fields. But when I get to a TZQuery that is more than 256 fields I get an ERangeError with Message 'Range Check Error' I have traced the problem to this line of code in the ZPlainMySQLDriver.pas:
Result := ZPlainMySql41.PMYSQL_ROW(ROW)[Offset]; into this context of code:
function TZMySQL41PlainDriver.GetFieldData(Row: PZMySQLRow;
Offset: Cardinal): PChar;
begin
Result := ZPlainMySql41.PMYSQL_ROW(ROW)[Offset];
end;
I am probably missing a constant to set up the MAX number of fields returned by the TZQuery. Does anyone knows where i can set this constant or anyone have an idea what could be happening?
Thanks in Advance,
Pablo