Browse Source

* Allow dots

git-svn-id: branches/fixes_3_2@46633 -
michael 5 years ago
parent
commit
befb0ada55
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/fcl-db/src/codegen/fpddcodegen.pp

+ 4 - 4
packages/fcl-db/src/codegen/fpddcodegen.pp

@@ -443,7 +443,7 @@ Resourcestring
 
 
 Function MakeIdentifier (S : String) : String;
 Function MakeIdentifier (S : String) : String;
 Function CreateString(S : String) : String;
 Function CreateString(S : String) : String;
-Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True);
+Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True; AllowDots : Boolean = False);
 
 
 implementation
 implementation
 
 
@@ -454,10 +454,10 @@ begin
   Result:=''''+Result+'''';
   Result:=''''+Result+'''';
 end;
 end;
 
 
-Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True);
+Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True; AllowDots : Boolean = False);
 
 
 begin
 begin
-  If ((AValue='') and Not AllowEmpty) or Not IsValidIdent(AValue) then
+  If ((AValue='') and Not AllowEmpty) or Not IsValidIdent(AValue,AllowDots) then
     Raise ECodeGenerator.CreateFmt(SErrInvalidIdentifier,[AValue]);
     Raise ECodeGenerator.CreateFmt(SErrInvalidIdentifier,[AValue]);
 end;
 end;
 
 
@@ -1686,7 +1686,7 @@ end;
 procedure TCodeGeneratorOptions.SetUnitname(const AValue: String);
 procedure TCodeGeneratorOptions.SetUnitname(const AValue: String);
 begin
 begin
   if FUnitName=AValue then exit;
   if FUnitName=AValue then exit;
-  CheckIdentifier(AValue,False);
+  CheckIdentifier(AValue,False,True);
   FUnitName:=AValue;
   FUnitName:=AValue;
 end;
 end;