Skip to content

Commit d81cc6c

Browse files
committed
Treat BLOBs like required in grid INSERTs and UPDATEs. Bug report: http://www.heidisql.com/forum.php?t=5883
1 parent 95f1f59 commit d81cc6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/mysql_connection.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ function TMySQLQuery.SaveModifications: Boolean;
21092109
Val := 'NULL'
21102110
else case Datatype(i).Category of
21112111
dtcInteger, dtcReal: Val := Cell.NewText;
2112+
dtcBinary: Val := '_binary ' + Cell.NewText;
21122113
else Val := Connection.EscapeString(Cell.NewText);
21132114
end;
21142115
sqlUpdate := sqlUpdate + Connection.QuoteIdent(FColumnOrgNames[i]) + '=' + Val;

0 commit comments

Comments
 (0)