diff --git a/packages/fcl-db/src/base/bufdataset.pas b/packages/fcl-db/src/base/bufdataset.pas index 301de2c9f5..bd5a3b7848 100644 --- a/packages/fcl-db/src/base/bufdataset.pas +++ b/packages/fcl-db/src/base/bufdataset.pas @@ -528,7 +528,7 @@ type function CompareBookmarks(Bookmark1, Bookmark2: TBookmark): Longint; override; property ChangeCount : Integer read GetChangeCount; - property MaxIndexesCount : Integer read FMaxIndexesCount write SetMaxIndexesCount; + property MaxIndexesCount : Integer read FMaxIndexesCount write SetMaxIndexesCount default 2; published property FileName : string read FFileName write FFileName; property PacketRecords : Integer read FPacketRecords write SetPacketRecords default 10; @@ -541,7 +541,7 @@ type TBufDataset = class(TCustomBufDataset) published - property MaxIndexesCount default 2; + property MaxIndexesCount; // TDataset stuff property FieldDefs; Property Active; diff --git a/packages/fcl-db/src/sqldb/sqldb.pp b/packages/fcl-db/src/sqldb/sqldb.pp index 12b873f303..1f5ab92eef 100644 --- a/packages/fcl-db/src/sqldb/sqldb.pp +++ b/packages/fcl-db/src/sqldb/sqldb.pp @@ -321,7 +321,7 @@ type // protected property SchemaType : TSchemaType read FSchemaType default stNoSchema; property Transaction; - property ReadOnly : Boolean read FReadOnly write SetReadOnly; + property ReadOnly : Boolean read FReadOnly write SetReadOnly default false; property SQL : TStringlist read FSQL write SetSQL; property UpdateSQL : TStringlist read FUpdateSQL write SetUpdateSQL; property InsertSQL : TStringlist read FInsertSQL write SetInsertSQL; @@ -342,7 +342,9 @@ type public property SchemaType; Published + property MaxIndexesCount; // TDataset stuff + property FieldDefs; Property Active; Property AutoCalcFields; Property Filter;