ZConnection.ClientCodepage: cp1251
If i use
Code: Select all
ZQuery.SQL.Text:='INSERT INTO `testtable` (`name`) VALUES (''сyrillic text Текст'')';
ZQuery.ExecSQL;
Code: Select all
ZQuery.SQL.Text:='INSERT INTO `testtable` (`name`) VALUES (:txtparam)';
ZQuery.Params[0].AsString:='сyrillic text Текст';
ZQuery.ExecSQL;
Code: Select all
function TZMySQLEmulatedPreparedStatement.GetEscapeString(const Value: string): string;
...
{$IFDEF DELPHI12_UP}
BufferLen := FPlainDriver.GetEscapeString(Buffer, PAnsiChar(UTF8Encode(Value)), Length(PAnsiChar(UTF8Encode(Value))))
else
BufferLen := FPlainDriver.GetRealEscapeString(FHandle, Buffer, PAnsiChar(UTF8Encode(Value)), Length(PAnsiChar(UTF8Encode(Value))));
...
end;
Zeos from SVN /trunk, revision 1082
Delphi XE