mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix critical character in SQL on old servers which can be converted using the local codepage. Fixes issue #1569.
This commit is contained in:
@ -363,7 +363,10 @@ begin
|
||||
if not Ping then
|
||||
Active := True;
|
||||
Log(lcSQL, SQL);
|
||||
NativeSQL := UTF8Encode(SQL);
|
||||
if IsUnicode then
|
||||
NativeSQL := UTF8Encode(SQL)
|
||||
else
|
||||
NativeSQL := AnsiString(SQL);
|
||||
TimerStart := GetTickCount;
|
||||
querystatus := mysql_real_query(FHandle, PAnsiChar(NativeSQL), Length(NativeSQL));
|
||||
FLastQueryDuration := GetTickCount - TimerStart;
|
||||
|
Reference in New Issue
Block a user