mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix browsing content of tables with weird characters in their name.
This commit is contained in:
@ -5471,7 +5471,7 @@ procedure TMDIChild.EnsureDataLoaded(Sender: TBaseVirtualTree; Node: PVirtualNod
|
|||||||
var
|
var
|
||||||
res: TGridResult;
|
res: TGridResult;
|
||||||
start, limit: Cardinal;
|
start, limit: Cardinal;
|
||||||
query: String;
|
query: WideString;
|
||||||
ds: TDataSet;
|
ds: TDataSet;
|
||||||
i, j: LongInt;
|
i, j: LongInt;
|
||||||
begin
|
begin
|
||||||
@ -5481,7 +5481,7 @@ begin
|
|||||||
start := Node.Index - (Node.Index mod GridMaxRows);
|
start := Node.Index - (Node.Index mod GridMaxRows);
|
||||||
limit := DataGrid.RootNodeCount - start;
|
limit := DataGrid.RootNodeCount - start;
|
||||||
if limit > GridMaxRows then limit := GridMaxRows;
|
if limit > GridMaxRows then limit := GridMaxRows;
|
||||||
query := DataGridCurrentQuery + Format(' LIMIT %d, %d', [start, limit]);
|
query := DataGridCurrentQuery + WideFormat(' LIMIT %d, %d', [start, limit]);
|
||||||
|
|
||||||
// start query
|
// start query
|
||||||
MainForm.ShowStatus('Retrieving data...');
|
MainForm.ShowStatus('Retrieving data...');
|
||||||
|
Reference in New Issue
Block a user