mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Do not LEFT(CAST(.. data type "image" in MSSQL. Fixes issue #3355.
This commit is contained in:
@ -4590,6 +4590,7 @@ begin
|
||||
if not DataGridFullRowMode
|
||||
and (KeyCols.Count > 0) // We need a sufficient key to be able to load remaining row data
|
||||
and (c.DataType.Category in [dtcText, dtcBinary])
|
||||
and (not (c.DataType.Index in [dtImage])) // Cannot cast certain data types
|
||||
and (not IsKeyColumn) // We need full length of any key column, so DataGridLoadFullRow() has the chance to fetch the right row
|
||||
and ((ColLen > GRIDMAXDATA) or (ColLen = 0)) // No need to blow SQL with LEFT() if column is shorter anyway
|
||||
then begin
|
||||
|
Reference in New Issue
Block a user