|
@@ -1687,7 +1687,7 @@ begin
|
|
|
// converts parameter value to connection charset
|
|
|
if FCodePage = CP_UTF8 then
|
|
|
Result := Param.AsUTF8String
|
|
|
- else if FCodePage in [DefaultSystemCodePage, CP_ACP] then
|
|
|
+ else if FCodePage in [DefaultSystemCodePage, CP_ACP, CP_NONE] then
|
|
|
Result := Param.AsAnsiString
|
|
|
else
|
|
|
begin
|
|
@@ -1699,7 +1699,7 @@ end;
|
|
|
function TSQLConnection.GetAsSQLText(Field : TField) : string;
|
|
|
begin
|
|
|
if (not assigned(Field)) or Field.IsNull then Result := 'Null'
|
|
|
- else case field.DataType of
|
|
|
+ else case Field.DataType of
|
|
|
ftString : Result := QuotedStr(Field.AsString);
|
|
|
ftDate : Result := '''' + FormatDateTime('yyyy-mm-dd',Field.AsDateTime,FSqlFormatSettings) + '''';
|
|
|
ftDateTime : Result := '''' + FormatDateTime('yyyy-mm-dd hh:nn:ss.zzz',Field.AsDateTime,FSqlFormatSettings) + '''';
|