Changeset 21 for trunk/DbEngines/UEngineMySQL.pas
- Timestamp:
- Mar 23, 2018, 3:06:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DbEngines/UEngineMySQL.pas
r20 r21 19 19 public 20 20 SqlDatabase: TSqlDatabase; 21 procedure Query( DbRows: TDbRows; Text: string); override;21 procedure Query(Text: string; DbRows: TDbRows = nil); override; 22 22 constructor Create; override; 23 23 destructor Destroy; override; … … 87 87 if DbRows2.Count > 0 then begin 88 88 TypeName := TDictionaryStringString(DbRows2[0]).Values['Name']; 89 NewField.DataType := Table.DbClient.ClientType.DataTypes. FindByName(TypeName);89 NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByName(TypeName); 90 90 if not Assigned(NewField.DataType) then 91 NewField.DataType := Table.DbClient.ClientType.DataTypes. FindByType(ftString);91 NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByType(ftString); 92 92 end else begin 93 93 // Use string as default 94 NewField.DataType := Table.DbClient.ClientType.DataTypes. FindByType(ftString);94 NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByType(ftString); 95 95 end; 96 96 Table.Fields.Add(NewField); … … 125 125 end; 126 126 127 procedure TDatabaseMySQL.Query( DbRows: TDbRows; Text: string);127 procedure TDatabaseMySQL.Query(Text: string; DbRows: TDbRows = nil); 128 128 begin 129 129 SqlDatabase.Query(DbRows, Text);
Note:
See TracChangeset
for help on using the changeset viewer.