Ignore:
Timestamp:
Mar 23, 2018, 3:06:47 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Allow to create and remove tables for XML backend.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DbEngines/UEngineMySQL.pas

    r20 r21  
    1919  public
    2020    SqlDatabase: TSqlDatabase;
    21     procedure Query(DbRows: TDbRows; Text: string); override;
     21    procedure Query(Text: string; DbRows: TDbRows = nil); override;
    2222    constructor Create; override;
    2323    destructor Destroy; override;
     
    8787      if DbRows2.Count > 0 then begin
    8888        TypeName := TDictionaryStringString(DbRows2[0]).Values['Name'];
    89         NewField.DataType := Table.DbClient.ClientType.DataTypes.FindByName(TypeName);
     89        NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByName(TypeName);
    9090        if not Assigned(NewField.DataType) then
    91           NewField.DataType := Table.DbClient.ClientType.DataTypes.FindByType(ftString);
     91          NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByType(ftString);
    9292      end else begin
    9393        // Use string as default
    94         NewField.DataType := Table.DbClient.ClientType.DataTypes.FindByType(ftString);
     94        NewField.DataType := Table.DbClient.ClientType.DataTypes.SearchByType(ftString);
    9595      end;
    9696      Table.Fields.Add(NewField);
     
    125125end;
    126126
    127 procedure TDatabaseMySQL.Query(DbRows: TDbRows; Text: string);
     127procedure TDatabaseMySQL.Query(Text: string; DbRows: TDbRows = nil);
    128128begin
    129129  SqlDatabase.Query(DbRows, Text);
Note: See TracChangeset for help on using the changeset viewer.