Ver Fonte

* Published TSQLQuery.MaxIndexesCount and FieldDefs
* Set default values for MaxIndexesCount and Readonly

git-svn-id: trunk@17378 -

joost há 14 anos atrás
pai
commit
840d06dddb

+ 2 - 2
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;

+ 3 - 1
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;