Page 1 of 1

Columncount in mysql

Posted: 25.03.2009, 16:44
by tobit
Hi

I have a Problem with tables which have more than 256 fields.
When i try to open the Query i get a message ("ungültige Bereichseingrenzung"). I find in the ZPlainMySql5.pas the problem.

The Array of MYSQL_ROW was to short.

MYSQL_ROW = array[00..$ff] of PChar;

Is this a bug?


Tobi

Posted: 25.03.2009, 22:15
by mdaems
It's sort of a bug, but it will probably not be solved. If you really want that much columns, there's some ohter post on the forum about how to work around this. I tried it before, but extending the array used to much memory. If you don't show all fields, use a TZQuery, showing only the columns you really need.

Mark