mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1482: temporary workaround for different array returned by mysql_fetch_lengths on Linux
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, dbstructures;
|
Classes, SysUtils, Types, dbstructures;
|
||||||
|
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -181,7 +181,7 @@ type
|
|||||||
|
|
||||||
// Added in Oct 2023, to fix usage of mysql_fetch_lengths(). See issue #1863
|
// Added in Oct 2023, to fix usage of mysql_fetch_lengths(). See issue #1863
|
||||||
PMYSQL_LENGTHS = ^TMYSQL_LENGTHS;
|
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;
|
MYSQL_ROW = array[0..$ffff] of PAnsiChar;
|
||||||
PMYSQL_ROW = ^MYSQL_ROW;
|
PMYSQL_ROW = ^MYSQL_ROW;
|
||||||
|
Reference in New Issue
Block a user