Issue #1482: temporary workaround for different array returned by mysql_fetch_lengths on Linux

This commit is contained in:
Ansgar Becker
2025-03-09 20:14:15 +01:00
parent 91be516f0f
commit b64790f860

View File

@ -5,7 +5,7 @@
interface
uses
Classes, SysUtils, dbstructures;
Classes, SysUtils, Types, dbstructures;
const
@ -181,7 +181,7 @@ type
// Added in Oct 2023, to fix usage of mysql_fetch_lengths(). See issue #1863
PMYSQL_LENGTHS = ^TMYSQL_LENGTHS;
TMYSQL_LENGTHS = array[0..MaxInt div SizeOf(LongWord) - 1] of LongWord;
TMYSQL_LENGTHS = array[0..4095] of {$IfDef LINUX} qword {$Else} LongWord {$EndIf};
MYSQL_ROW = array[0..$ffff] of PAnsiChar;
PMYSQL_ROW = ^MYSQL_ROW;