|
@@ -2241,6 +2241,9 @@ end;
|
|
|
|
|
|
function TSQLParser.CreateLiteral(AParent : TSQLElement) : TSQLLiteral;
|
|
function TSQLParser.CreateLiteral(AParent : TSQLElement) : TSQLLiteral;
|
|
|
|
|
|
|
|
+var
|
|
|
|
+ SQLFS: TFormatSettings;
|
|
|
|
+
|
|
begin
|
|
begin
|
|
Result:=Nil;
|
|
Result:=Nil;
|
|
Case CurrentToken of
|
|
Case CurrentToken of
|
|
@@ -2257,7 +2260,9 @@ begin
|
|
tsqlFloatNumber:
|
|
tsqlFloatNumber:
|
|
begin
|
|
begin
|
|
Result:=TSQLLiteral(CreateElement(TSQLFloatLiteral,AParent));
|
|
Result:=TSQLLiteral(CreateElement(TSQLFloatLiteral,AParent));
|
|
- TSQLFloatLiteral(Result).Value:=StrToFloat(CurrentTokenString);
|
|
|
|
|
|
+ SQLFS:=DefaultFormatSettings;
|
|
|
|
+ SQLFS.DecimalSeparator:='.';
|
|
|
|
+ TSQLFloatLiteral(Result).Value:=StrToFloat(CurrentTokenString,SQLFS);
|
|
end;
|
|
end;
|
|
tsqlNull :
|
|
tsqlNull :
|
|
Result:=TSQLLiteral(CreateElement(TSQLNullLiteral,AParent));
|
|
Result:=TSQLLiteral(CreateElement(TSQLNullLiteral,AParent));
|