Subject | Problems with TIB_Transaction.AutoCommit property |
---|---|
Author | Calin Pirtea |
Post date | 2004-11-12T01:25:29Z |
Ib_transaction.AutoCommit property does not have a default value but has
instead a store value.
property AutoCommit: boolean read GetAutoCommit
write SetAutoCommit
stored IsAutoCommitStored;
The property is stored into the DFM _only_ if it is true and
serverautocommit is false.
Problem is if you have a base class form where autocommit is true and you
inherit from this base class but want autocommit to be false you cannot make
it false because it will not store into the DFM, so Delphi will use the
inherited value.
I think the default should be added and IsAutoCommitStored should let it to
be stored without looking at autocommit property. If Autocommit is to be
forced False then SetAutoCommit and SetServerAutoCommit should be fixed
rather then prevent storing of valueable values into the DFM.
Opinions?
Calin Pirtea
COMMUNICARE DEVELOPMENT TEAM
Communicare Systems Pty Ltd
08 9332 2433
041 9906 150
08 9310 1516 (fax)
instead a store value.
property AutoCommit: boolean read GetAutoCommit
write SetAutoCommit
stored IsAutoCommitStored;
The property is stored into the DFM _only_ if it is true and
serverautocommit is false.
Problem is if you have a base class form where autocommit is true and you
inherit from this base class but want autocommit to be false you cannot make
it false because it will not store into the DFM, so Delphi will use the
inherited value.
I think the default should be added and IsAutoCommitStored should let it to
be stored without looking at autocommit property. If Autocommit is to be
forced False then SetAutoCommit and SetServerAutoCommit should be fixed
rather then prevent storing of valueable values into the DFM.
Opinions?
Calin Pirtea
COMMUNICARE DEVELOPMENT TEAM
Communicare Systems Pty Ltd
08 9332 2433
041 9906 150
08 9310 1516 (fax)