You've already forked lazarus-ccr
RxFPC:TZeosDataSetSortEngine - use IsValidIdent
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4597 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -54,9 +54,10 @@ uses ZDbcIntfs, ZVariant;
|
|||||||
|
|
||||||
function FixFieldName(S:string):string;inline;
|
function FixFieldName(S:string):string;inline;
|
||||||
begin
|
begin
|
||||||
if Pos(' ', S)>0 then
|
if not IsValidIdent(S) then
|
||||||
S:='"'+S+'"';
|
Result:='"'+S+'"'
|
||||||
Result:=S;
|
else
|
||||||
|
Result:=S;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TZeosDataSetSortEngine.Sort(FieldName: string; ADataSet: TDataSet;
|
procedure TZeosDataSetSortEngine.Sort(FieldName: string; ADataSet: TDataSet;
|
||||||
|
Reference in New Issue
Block a user