# All new FIBPlus features, enhancements and bug fixes in versions 4.8-6.7

## Fast, flexible and high-performance component library for Delphi, C++ Builder and Kylix intended for work with InterBase and Firebird using Direct InterBase API.

Home :: FIBPlus :: Articles :: Release notes for new FIBPlus versions

Counter: | 14
Published: | 2007-06-09 05:49:39

## All new FIBPlus features, enhancements and bug fixes in versions 4.8-6.7

### Version 4.8

#### Features and enhancements:

1. FIBPlus 4.8 is compatible with Borland InterBase 7. Uncomment {$DEFINE LONG_METADATA_NAMES} in FIBPlus.inc (only for registered users)
2. FIBPlus 4.8 is compatible with Kylix 3. It includes compiled modules for Kylix 3.
3. A FIBQuery.OnBatchError event has been added. TOnBatchError = procedure(E: EFIBError; var BatchErrorAction: TBatchErrorAction) of object; TBatchErrorAction = (beFail, beAbort, beRetry, beIgnore);
4. Setting of editor font has been added to SQLEditor.
5. New qoNoForceIsNull options have been added to TpFIBQuery and poNoForceIsNull in TpFIBDataSet. They deactivate replacing "Param=:Param" by "Param IS NULL" if the corresponding parameter gets a Null value.
6. A new eloInFetchedRecords option in TExtLocateOption has been added. When it is added, the ExtLocate method does not fetch records if there are no records satisfying the search conditions.
7. If you set the Transaction properAll new FIBPlus features, enhancements and bug fixes in versions 5.0-6.5. ty of a dataset, this will cause setting of the Database property if it has not been set.
8. Now VisibleRecno is a Read/write property.
9. A new VisibleRecordCount method has appeared. A function VisibleRecno: Integer function has been added. It is done especially to show numbered records.
   In OnCalcFields you write FBN('NumField').AsInteger := VisibleRecno and get numbered records. This works on deleting, filtering, etc. Though in OnFilterRecord it is not recommended to use VisibleRecno in filtering conditions.
10. Due to issue 9 and 10 in Options there has appeared an poVisibleRecno option. On activating Recno, RecordCount works through VisibleRecordCount and VisibleRecno. As a result the TDBGrid scrollbar shows a correct position on the filtered dataset if all resords have been fetched.
11. New nethods of TpFIBDatabase have been added:
    ClientVersion - version of gds32 as a string
    ClientMajorVersion - major version of gds32
    ClientMinorVersion - minor version of gds32 (Only for InterBase 7.0)

#### Fixed bugs:

12. An error of AddWhereClause in the query with plan has been fixed.
13. An error of work with array fields has been fixed.
14. Design editor for AutoUpdateOptions.keyFields has been improved.
15. An error od setting Database.DefaultTransaction := nil has been fixed.
16. An error of using TFIBBCDField as a calc-field has been fixed.
17. Errors of joint use of dataset repositary and Conditions have been fixed.
18. A bug with filtering through the Filter property on TIMESTAMP fields has been fixed.
19. A bug in FormatExtended has been fixed.
20. A bug with TransactionID after CommitRetaining has been fixed.
21. Realization of the 'Filter' property has been corrected. It did not react on changing the filter text if this was done when the dataset was closed.
22. Work with a field designer has been corrected.
23. An error of invalid BLOB ID appeared in case of exception in Insert.
24. Some internal fixes in FIBQuery making work more optimal in some crucial situations.
25. A bug with CacheEdit has been fixed.
26. Minor bugs of editing field repositary in design-time have been fixed.
27. A minor bug of the Filter property. Under certain conditions there appeared an error of convertion.

    ### Version 4.8.1

    #### Fixed bugs:

28. The error "no databases are listed in transaction component" appeared on opening the form has been fixed.
29. The error of addressing to the blob-parameter as to the string one has been fixed.
30. The error "conversion error from string" with use of parameters of the Variant type has been fixed.
31. The error of work of RecordCount on joint when using psAskRecordCount and deleting records has been fixed.
32. The error of insert of new records has been fixed.
33. The error of the parameter order set in macroses has been fixed.
34. The error of alignment of TDBGrid columns by centre has been fixed.
35. The error appeared on editing a cloned Dataset has been fixed.
36. The error in CloneCurRecord, appeared on cloning the last record has been fixed.
37. The error which prevented the buffer from clearing at the place of the deleted record has been fixed.
38. The error of work with blob-parameters has been fixed.
39. pFIBQuery returned 0 instead of null when the result set was empty. Now this error has been fixed.
40. The error in the FullRefresh method has been fixed.

    ### Version 5.0

    #### Features and enhancements:

41. The editor of FIBPlus DataSet Repository has been changed.
42. Now TpFIBDatabase has the UseRepositories property. Setting it equal False you can deactivate by force use of any kind of repository support in the whole application.
43. The useRepositaries property has been renamed to useRepositories.
44. The TFIBXSQLDA.AssignValues method has been added.
45. New fields
    UPDATE_TABLE_NAME,
    UPDATE_ONLY_MODIFIED_FIELDS and
    CONDITIONS
    have been added in FIBPlus DataSet Repository.
46. Dataset timers are created now not by default, but only when they are necessary.
47. The property ValidateAfterLoad: boolean has been added to TpFIBDatabase.CacheSchemaOptions. If you set it equal False, FIBPlus will not try to check the saved metadata scheme after loading.
48. TpFIBQuery has now the public read-write PlanClause property.
49. The button SaveSQL does not check the SQL syntax in SQLEditor if this check is not activated.
50. The SqlTxtRtns module has been entirely rewritten.
51. The UpdateTransaction behaviour has been changed. Now it starts only at the moment of execution of a modifying query. The query preparation is executed in open transactions.
52. TpFIBDatabase.Gen_Id is called now in the first available open transaction and does not create its own one.
53. Work with new InterBase keywords has been improved.
54. The AsIn64 property has been added to TFIBBCDField (for all Delphi versions starting from Delphi 4).
55. A property responsible for the generator step has been added to AutoUpdateOptions of TpFIBDataSet.
56. Some events have been renamed:
    - TpFIBDatabase.Onlogin is changed to BeforeConnect,
    - TpFIBDatabase.OnConnect is changed to AfterConnect.
57. Support of server exceptions during work with Foreign Keys, Check Constraints and Unique Constraints has been added to TpFibErrorHandler.
    To activate this feature you need to activate the corresponding option in the Options property in TpFIBErrorHandler and create the following table in the database:
    CREATE TABLE FIB$ERROR_MESSAGES
    (CONSTRAINT_NAME VARCHAR(67) NOT NULL,
    MESSAGE_STRING VARCHAR(100),
    FIB$VERSION INTEGER,
    CONSTR_TYPE VARCHAR(11) DEFAULT 'UNIQUE' NOT NULL );
    Creation of and work with this table is implemented in the TpFIBDataBase component editor now.
58. Two new properties have been added to AutoUpdateOptions:
    1. ParamsToFieldsLinks: TStrings
       Enables to set accordance between dataset fields and parameters in the form FieldName=ParamName. Then this accordance is used in the internalhandler before calling OnNewRecord. The parameter value is automatically set to the defined field;
    2. AutoParamsToFields: boolean
       If you set this property equal True, TpFIBDataSet tries to set the ParamsToFieldsLinks property itself analyzing the SelectSQL text. (run-time only)
59. The DefaultUpdateTransaction property has been added to TpFIBDatabase. Being added to the form after setting DefaultUpdateTransaction, all the TpFIBDataSet sets will use this property value in order to set the UpdateTransaction property.
60. Now TpFIBTransaction has methods:

1. SetSavePoint(const Name: string) and
2. RollBackToSavePoint(const Name: string)

(only for FB 1.5)
61. Now TpFIBDatabase has the property ServerActiveTransactions: TStringList, which returns a list of active transaction identifiers of the current database at the server. This list returns an ID list of transactions active at the moment (only for FB 1.5)
62. Minor changes in TFIBSQLMonitor, enabling it to monitor new operations with SavePoint.

### Version 5.0.8

#### Features and enhancements:

63. An ability to address to calculated fields from OnFilterRecord has been added.

### Version 5.1

#### Features and enhancements:

64. An ability to set a path to the client library for a separate TpFIBDatabase (different gds32.dll, fbclient.dll) has been added.
65. A new TpFIBDataSet property RefreshTransactionKind: TTransactionKind has been added where TTransactionKind = (tkReadTransaction, tkUpdateTransaction); It determines the transaction context of RefreshSQL execution. If the dataset has no separate UpdateTransaction, this property value is ignored.
66. The CompareBookmarks function has been changed.
67. The TTransactionAction type in unit IB_Services; has been renamed to TServiceTransactionAction in order to avoid conflicts with the TTransactionAction type in FIBDatabase.

### Version 5.2

#### Features and enhancements:

68. FIBDataSet handlers added:

1. property BeforeStartTransaction: TNotifyEvent;
2. property AfterStartTransaction: TNotifyEvent;
3. property BeforeEndTransaction: TEndTrEvent;
4. property AfterEndTransaction: TEndTrEvent;
5. property BeforeStartUpdateTransaction: TNotifyEvent;
6. property AfterStartUpdateTransaction: TNotifyEvent;
7. property BeforeEndUpdateTransaction: TEndTrEvent;
8. property AfterEndUpdateTransaction: TEndTrEvent;

69. An ability to generate a single chosen modifying query instead of all has been added to SQL Generator.
70. A component editor for pFIBQuery has been added.
71. SQL Generator component editor and Dataset Repository editing dialog have been rewritten.
72. The poFetchAll option has been added to TpFIBDataSet.Options. If it is true, after opening TpFIBDataSet all the records will be automatically fetched from the server.
73. A new event OnApplyDefaultValue: TOnApplyDefaultValue has been added to TpFIBDataSet, where
TOnApplyDefaultValue = procedure (DataSet: TDataSet; Field: TField; var Applied: boolean) of object;
The event handler is called for each field with a not null DefaultExpression during insertion of a new record. In this handler you can handle DefaultExpression for some fields yourself if a standard handling procedure doesn’t suit for these needs. You should set Applied to True in order to handle it manually and deactivate standard handling.
74. Now FIBPlus behaves differently on changing the saved metadata cache. The check is done not after connection, but at times, when necessary. So is some cache parts are not required in the meanwhile, it won’t be checked.
75. DataSet Repository cache saving has been implemented. To make this possible we have added another field with a number of a repository record version to the DataSet Repository table. To automatically change the repository table structure call the repository editor using the pop-up menu in TpFIBDatabase.
76. A new variable FIBHideGrantError: boolean = False has been added. When the variable is True, and TpFIBDataSet has no data modification rights, it deactivates data editing or deleting ability without error messages.
77. In TpFIBDataSet the OnCompareFieldValues: TCompareFieldValues event has been added, where TCompareFieldValues = function (Field: TField; const S1,S2: variant): integer of object. The event handler is called during local sorting. Using it you can control sorting order and compare values transferred in pairs.
78. Support of comments with the marker '--' has been activated.
79. An ability to set defaults for TpFIBDataSet.DefaultFormats has been added to FIBPlusTools.

### Version 5.3

#### Features and enhancements:

80. Now the TpFIBTableInfo.GetPrimaryKeyFields method closes the transaction if it has been opened before.
81. FIBDataSet has new methods:
    procedure BatchRecordToQuery(ToQuery: TFIBQuery);
    procedure BatchAllRecordsToQuery(ToQuery: TFIBQuery);
    BatchRecordToQuery - adds parameter values, taken from the fileds of the current record, to the indicated query (ToQuery), and then executes the query.
    BatchAllRecordsToQuery - executes BatchRecordToQuery for all dataset records.
82. A new field type TFIBGuidField has beed added.
83. A new option psUseGuidField has been added to FIBDataSet.PrepareOptions. Its work is similar to that of psUseBooleanField. That is, if a field has a domain with the string 'GUID'in its name, it will be represented as a TFIBGuidField set at the client.
84. TFIBGuidField field values are automatically generated in the OnNewRecord event handler, if the AutoGenerateValue field value is equal to arAutoInc.
85. Now TpFIBDatabase has the CreateGUIDDomain method. It creates a special domain for the GUID fields in the database.
86. TFIBXSQLVAR has new methods supporting GUID fields:
    function GetAsGUID: TGUID;
    procedure SetAsGuid(aValue: TGUID);
87. TpFIBDataSet has new methods DisableCalcFields and EnableCalcFields. They activate/deactivate automatic calling of the OnCalcFields handler.
88. The Locate methods deactivate recalculation of calculated fields for the period of their work, if KeyFields have neither calc nor lookup fields.
89. A new option psUseGuidField has been added to FIBDataSet.PrepareOptions (works similar to psUseBooleanField: if the field has a domain with the string 'GUID' in its name, it will be shown in TFIBGuidField at the client)
90. Now SQL Editor can represent the current cursor position in the SQL text.
91. Such TpFIBDatabase methods, as
    function QueryValues(const aSQL: string): Variant; overload;
    function QueryValues(const aSQL: string; ParamValues: array of variant): Variant; overload;
    return all values of the indicated query as an array of variants
92. Now Before/AfterScroll calls:
    1. in case of unsuccessfull Locate are not performed.
    2. in case of successfull Locate BeforeScroll is called for the old record and AfterScroll for a new one.

    ### Version 6.0

    #### Features and enhancements:

93. The method function FindField(const FieldName: string): TFIBXSQLVAR has been implemented in TpFIBQuery. If the required field is not found, the function returns nil instead of the exception.
94. The property GroupByClause: string has been added to TpFIBQuery. It returns the text of GROUP BY from the current SQL text.
95. Now TpFIBQuery and TpFIBDataSet enable to work with macros in DDL queries.
96. The directive {$DEFINE NO_GUI} has been added to FIBPlus.inc. If it is enabled, the library files are generated without VCL-modules and visual components.
97. Now the TpFIBDataSet.GenerateSQLs method works even when the field collection is empty. This feature may help to generate SQL before opening a dataset, if the fields are not created in design-time.
98. TpFIBDataSet includes a new function LocatePrior (const KeyFields: String; const KeyValues: Variant; Options: TLocateOptions): Boolean. It enables to search a record in the local buffer (from the current record to the buffer beginning).
99. The TpFIBDataSet.Options property now has a psSetEmptyStrToNull option. If it is active, new string fields of this dataset have the EmptyStrToNull property activated.
100. The TpFIBDataSet.Options property has a poFreeHandlesAfterClose option. If this option is active and when Eof is True (i.e. after getting all records of the query result) Handle releases in TpFIBDataSet. This feature helps to avoid the server report «Object in use» on altering database objects. Note: Handle release causes the query close.
101. An analogous option (poFreeHandlesAfterClose) has been added to TpFIBQuery. If it is
     used, Handle is released immediately after calling of the Execute method.
102. An ability to set the transaction parameter isc_tpb_no_auto_undo has been added to TpFIBTransaction.
103. A new property TAutoUpdateOptions.SeparateBlobUpdate: Boolean has been implemented. If it is active, BLOB-fields are saved in the following way:
     1. Texts of modifying queries are generated without BLOB-fields.
     2. Modifying queries are generated separately together with the BLOB-fields.
     3. On executing Post the query is started without the BLOB-fields, and then an empty BLOB is being created. After it is saved in the database, UPDATE is started in order to save a real BLOB-field value. As a rule, BLOB-fields are saved by an ordinary modifying query.
     In case this query was rejected by the server and an exception arose, the BLOB-fields must be queried to the server anew. Due to a new approach, this situation is avoided. The BLOB-field is not queried to the server unless the main query INSERT/UPDATE is a success, and unless the developer encounters no problem during this step (i.e. if the server does not reject the operation in general).
104. A new mode of TpFIBDataSet internal buffer organization has been implemented. For more details see the paragraph «TpFIBDataSet mode "Confined local buffer"».
105. An ability of automatic caching of BLOB-fields at the client has been implemented. For more details see the paragraph «Caching BLOB-fields at the client side».
106. Now one may write a table name with an alias, for instance, as «TABLE1 AAA» in the AutoUpdateOptions.UpdateTableName property. This feature may be useful for correct generation of modifying queries by the SelectSQL text, with the modified table mentioned two times or more.
107. Supplement to the FIBPlus features and erhancements Version 6.0

### Version 6.1

#### Fixed bugs:

108. A report "Can''t read Buffer.Incorrect RecordNo" appeared on adding a new record to the database. An exception arose on trying to refresh an empty dataset. Fixed.
109. Incorrect FullRefresh occurred with CacheModelKind=cmkLimitedBufferSize Fixed.
110. Local sorting and the CloneCurRecord method did not work. Fixed.
111. On saving a dataset to the repository the query dialog always opened with an empty string. Fixed.
112. FIBPlus 6 invoked an error in the Refresh SQL Query when creating the SQL statements at design time. Fixed.
113. If Select used macro, refresh did not work. Fixed.
114. On trying to connect to the database in design-time FIBPlus used the client library gds32.dll, though the LibraryName property was fbclient.dll. Fixed.
115. AV on trying to cancel changes in Blob. Fixed.
116. An error with poKeepSorting on working with a huge dataset sorted by ORDER BY. Fixed.
117. An error on calling Append. Appeared occasionally. Fixed.
118. DoSortEx did not work. Fixed.
119. FullRefresh worked incorrectly in the confined local buffer mode. Fixed.
120. SQL generation for queries which used double quoted names of objects.
121. RefreshSQL could not be set through SQLNavigator in FIBPlusTools. Fixed.
122. An option "Close design connect after run application" has been added in Preferences of FIBPlusTools on the TpFIBDatabase page. If the option is true, after starting a program compiled in Delphi it disconnects all databases open in design time in the database. This option is necessary for the application which uses fbembedded.dll as a client library.

### Version 6.2

#### Features and enhancements:

123. TFIBGUIDField values are automatically generated on inserting a new record.
124. Now evident use of string values is possible in the WHERE clause with Unicode-connection to the database (SELECT * FROM T1 WHERE MyField = 'string'). Note: Versions 6.1 downwards can use only parameter values in Unicode connection.
125. FIBPlusTools have been adapted for Delphi 2005.
126. The BatchOutputRawFile method of the TpFIBQuery component has been changed:procedure BatchOutputRawFile (const FileName: string; Version: integer = 1);
     The second argument defines the way of writing to the file.
     If Version = 1, the old principle works: data are shown in the external file in the order, determined by SQL query fields. It is implied that the parameters will have the same order on reading the written data by the BatchInputRawFile method in a reading SQL. A number of TpFIBQuery fields (field data were written) and a number of TpFIBQuery parameters (the parameters will read the data) must coincide. String fields require conformity of the length of reading fields and the reading parameter; name conformity is not required.
     If Version = 2, a new writing principle is used. Besides the data, secondary information on fields (their name, type and length) is also written into the file. When being read, the data will be taken according to the name conformity. The number of fields and their order in the writing TpFIBQuery may not conform to those in the reading TpFIBQuery. No field type and length conformity is required. Field names must conform.
127. The TpFIBDatabase component has new properties:
     property ServerMajorVersion: integer;
     property ServerMinorVersion: integer;
     property ServerRelease: integer;
     property ServerBuild: integer;
     their names explain their meaning.
128. TpFIBQuery has new methods:
     function TableAliasForField(FieldIndex:integer):string; overload;
     function TableAliasForField(const aFieldName:string):string; overload;
     These functions return the table alias by a field number or by a field name.
129. ISQLObject interface has a new method:
     function FieldName (FieldIndex: integer): string;
130. Now maximum event length in TSIBfibEventAlerter is 128 symbols instead of 64.
131. Now it's possible to use calculated Blob fields in your applications. To enable this, the TFIBBlobField class has obtained a new property IsClientField: Boolean, and TpFIBDataSet has obtained a new OnFillClientBlob:TOnFillClientBlob event, where
     TOnFillClientBlob = procedure (DataSet: TFIBCustomDataSet; Field: TFIBBlobField; Stream: TFIBBlobStream) of object;
     Now if IsClientField of the blob field is True, the field value is not taken from the database or not written into it. (though the blob field must be sill present in Select query). To fill in field values you should set the OnFillClientBlob event handler of a corresponding TpFIBDataSet. For example:
     procedure TForm1.NoLookupFIBDataSetFillClientBlob(DataSet: TFIBCustomDataSet; Field: TFIBBlobField; Stream: TFIBBlobStream);
     begin
     Stream.LoadFromFile('c:\temp.txt');
     end;
132. A new poCacheCalcFields option has been added to the TpFIBDataSet component. If it is True, the results of calculated and lookup fields are stored in cache. This enables to recalculate the fields only after the record modification. This mode is recommended if the calculated fields are used for complex calculation, or if there are used local sorting, filtering and searching by calculated fields.
133. The TpFIBDataSet component has new methods:
     function CreateCalcField (FieldClass: TFieldClass; const aName, aFieldName: string; aSize: integer): TField;
     function CreateLookUpField (FieldClass: TFieldClass; const aName, aFieldName: string; aSize: integer; aLookupDataSet: TDataSet; const aKeyFields, aLookupKeyFields, aLookupResultField: string): TField;
     They enable to create calculated and lookup fields in run-time.
134. Performance of Locate and DoSort methods has been considerably increased (thanks to Gary Haywood for his performance tests).
135. Now if Required fields are empty, the CacheInsert and CacheEdit methods do not call an exception.
136. Now a field of the TFIBWideStringField class may be Calculated (as a standard TWideStringField class cannot be used because of the VCL error).
137. TpFIBDataSet has a new property FieldOriginRule: TFieldOriginRule, where
     TFieldOriginRule = (forNoRule, forTableAndFieldName, forClientFieldName, forTableAliasAndFieldName);
     It determines the rule of setting TField.Origin.
     forNoRule: Origin is not set (developers should set it themselves).
     forTableAndFieldName: Origin is set as a string: "physical table name "+"."+"physical field name".
     forClientFieldName: Origin conforms with Field.FieldName.
     forTableAliasAndFieldName: Origin is set as a string: "table alias in query"+"."+"physical field name".
     The forNoRule and forClientFieldName rules are useful for the developers who use FIBPlus together with DevExpress. The forTableAliasAndFieldName rule is important in Firebird 2.
138. Now in the AutoUpdateOptions.UpdateTableName property it is possible to set not simply a table name, but a table name + " " + a table alias. If the table name is not upper-case (dialect 3), it must be written in double quotes (" ").
     This enables to correctly generate modifying queries for Firebird 2, as FIBPlus effectively works with such constructions as:
     Select a.*, b.Description DescripB
     from Tasks a
     left join Tasks b on (b.id = a.id)
     In other words, it works well with the constructions, in which one table is used more than once. The Description field must not be edited. Previous versions of FIBPlus (6.1 downwards) and IB/FB do not work correctly with such queries. Now in FIBPlus 6.2 it's enough to set AutoUpdateOptions.UpdateTableName := 'Tasks a' instead of AutoUpdateOptions.UpdateTableName := 'Tasks'.

#### Fixed bugs:

139. A bug with the TFIBGUIDField class (the class was not registered). Fixed.
140. The Locate method worked incorrectly with Unicode fields. Fixed.
141. An error in the SQL editor in Delphi 2005. Switch to Code Editor worked incorrectly. Fixed.
142. An error in the SQL parser, which appeared on uncommon queries. Fixed.
143. An error in GUID fields in the master-detail mode. Fixed.
144. The SetAsBCD and GetAsBCD methods of the FIBBCDField class worked incorrectly with calculated fields. Fixed.
145. An error in the AsString property of the TpFIBQuery component on working with Unicode. Fixed.
146. Fields of the NUMERIC(xxx, yyy) type were not shown correctly on using the DisplayFormat property for values which were not precised well by the Double type. Fixed.
147. An error of inserting in an empty TpFIBDataSet, if poKeepSorting is True. Fixed.
148. An error in ApplyUpdates on deleting all records. Fixed.
149. ExtLocate into a sorted query in TpFIBDataSet worked incorrectly, if KeyFields order differed from real sorting field order. Fixed.
150. Now, Search is a simple running over, on calling ExtLocate with the eloInSortedDS option into an unsorted query in TpFIBDataSet. Previous versions showed incorrect results of such Search. Fixed.}

### Version 6.25

#### Features and enhancements:

151. Two TFIBDatabase methods supporting new commands RDB$GET_CONTEXT and RDB$SET_CONTEXT implemented in Firebird 2 have been added.
     function GetContextVariable (ContextSpace: TFBContextSpace; const VarName: string): Variant;
     procedure SetContextVariable (ContextSpace: TFBContextSpace; const VarName, VarValue: string);

     #### Fixed bugs:

152. An error in the TpFIBQuery.SetAsExtended method. Fixed.
153. A minor memory leak in RegUtils. Fixed.
154. An error occurring on writing into a Blob field with TDataSetProvider. Fixed.
155. An error "Can't read buffer. Invalid RecordNo”, occurred under certain conditions. Fixed.
156. Wrong results of calling the Refresh method in TpFIBDataSet occurred under certain conditions. Fixed.
157. An error on reading a Blob field in the OnCalcFields handler. Fixed.
158. An error in the Locate method of the TpFIBDataSet component occurred in case when not all records were fetched from the server. Fixed.
159. Wrong results of the Origin property with FieldOriginRule = forNoRule Fixed.
160. An error of generating SQL statements with UpdateOnlyModifiedFields=True in the TpFIBDataSet component (appeared in NUMERIC(18,x) fields on trying to replace the NULL value by 0 and vice versa. FIBPlus wrongly considered these fields non changeable).
161. Wrong work of DisplayFormat for NUMERIC(18,x) fields. It occurred on using non mask symbols, i.e. "$ #,000 and 00 cents". Fixed.
162. An error in client calculated fields. (The buffer was not cleared before the field calculation. The error occurred in case when a field was calculated for the previous record, not for the current one in OnCalcFields. Then, instead of an empty value, the previous record value was shown in the current record). Fixed.
163. Wrong search of the True Boolean value in TpFIBBooleanField. Fixed.
164. An AV in TFIBStringField occurred under certain conditions when using the psSetEmptyStrToNull property. Fixed.
165. Useless quotes in the automatic GeneratorName value. Fixed.
166. An error of defining key fields in SQLEditor Fixed.
167. Nested parameters were not set in RefreshSQL on using macros. Fixed.

### Version 6.3

#### Features and enhancements:

168. A new method function FIBDataSet.IsComputedField(Field:Variant): boolean; has been added. It returns true even for server-calculated fields. Its argument is either a field name in the dataset or a field number in the filed list.
169. A new method procedure FIBDataSet.AssignProperties(Source: TFIBCustomDataSet); has been added. It sets values from the Source dataset properties to all properties. This method is similar to FIBQuery.AssignProperties.
170. Two dataset properties have been added. They enable access to SELECTSQL clauses:
     property GroupByClause:string;
     property MainWhereClause:string;
     property PlanClause:string;
171. A new define {$DEFINE synedit-201b.zip}has been added to pFIBPropEd.inc. It activates defines for particular SynEdit builds. This build available at the SynEdit site is called synedit-201b.zip
172. FIBDataBase has a new SQLLogger property. The FIBAppStatistics component has beed removed. Now its functionality is realized in the FIBSQLLogger component.
     FIBSQLLogger is a component enabling to log SQL queries and gather query statistics.
     Properties:
     property ActiveStatistics:boolean - Shows whether statistics gathering is active.
     property ActiveLogging:boolean - Shows whether logging is active
     property LogFileName:string - Shows the log file name
     property StatisticsParams :TFIBStatisticsParams - Shows what parameters are used for statistics gathering
     property LogFlags: TLogFlags - Shows what operations are logged
     property ForceSaveLog:boolean - Forces log writing. I.e. every query is written to the file.
     Methods
     function ExistStatisticsTable:boolean; - Shows whether a table for statistics keeping exists
     procedure CreateStatisticsTable; - Creates a table for keeping statistics in the database
     procedure SaveStatisticsToDB(ForMaxExecTime:integer=0); - Saves the statistics to a database table. The parameter shows statistics for long-running queries. Set the ForMaxExecTime value equal to the shortest query execution time, and you will get statistics on all longer queries.
     procedure SaveLog; - Saves the log into the file (necessary if ForceSaveLog is set to True)
     (Special thanks to Jonathan Neve).
173. A feature enabling to deactivate the component name causing an error, has been added. For this use the code:
     use FIB; Exclude(IBErrorMessages, ShowRaiserName).
174. isc_tpb_no_savepoint transaction parameter is handled now for better InterBase 7.5 support.
175. A new variant of the FIBQuery.ExecWPS; method has been implemented:
     procedure ExecWPS(ParamSource:ISQLObject; AllRecords:boolean=True); overload;
     It works almost the same as ExecWPS. I.e. it runs ExecQuery, using the ParamSource parameter as a parameter source. The second argument tells the method to execute ExecQuery either for each ParamSource record or only for the current.
176. Now pFIBClientDataSet supports ISQLObject interface. Along with Feature 2 this enhancement enables easy data transfer from the client dataset to the InterBase/Firebird database. An example: FIBQuery1.ExecWPS(FibClienDataSet1,True)
177. Minor enhancements in FIBQuery parameter handling (Thanks to Andry Ogorodnik)
178. New feature of Firebird 2 is supported now. Firebird syntax is:
     Insert Into Table1 ...
     RETURNING FIELD1,FIELD2...
     If you write such InsertSQL in the dataset, then all the fields returned in the RETURNING clause after execution of the Post method will be updated in the dataset. This feature helps to get field values formed by triggers without additional Refresh. I.e. you may also get primary key values without calling the generator at client.
179. Minor enhancements for better C++ Builder and Kylix support.
180. gen_id() handling has been added to SQLEditor (in SynEdit in Code Proposal). Pressing Ctrl+space you may see a list of generators (thanks to Jonathan Neve)
181. SQLEditor shows field types. (thanks to Jonathan Neve)

#### Fixed bugs:

182. Wrong query generation in confined cache mode, if the order by clause had comments. Fixed
183. Incorrect work of the poKeepSorting option on adding the First record to the dataset. Fixed
184. An error of primary key generation in Midas applications if the provider had ResolveToDataset = False. Fixed
185. An error in Numeric fields on using different section formats, such as '#,##0.00;#,##0.000;Zero'. Fixed
186. Some errors in ÑloneCurrRecord, macros and queries; DoSortEx in OpenAsClone. Fixed.
187. An error in the SQL parser. It appeared if the parameter followed after "-", i.e. SET IS_DELETE = -?OLD_RING_IDENT. Fixed
188. An error in the OpenAsClone method. It appeared on sorting and modifying the data in the clone dataset. Fixed
189. An error of handling the poTrimCharFields option. It appeared when a user inserted too many spaces at the end of the string while working with Varchar. After Post these end spaces were kept in memory whereas the data was shown without them. Fixed
190. Incorrect work of ExtLocateNext with the eloInSortedDS option. Fixed
191. An error of Refresh with poVisibleRecno set to True in the master-detail link. On adding a record to the Detail dataset and after Refresh, the Master dataset changed the current position to some optional record. Fixed
192. Incorrect generation of modifying queries on changing SelectSQL together with the alias of the modifying table. Fixed
193. Incorrect work of TpFIBTableInfoCollect.ClearForTable for tables with Names written in "". Fixed
194. The Eof flag remained if the cursor stood at the last dataset record after Locate. Fixed
195. In some cases an exception appeared in RefreshSQL. EFIBInterbaseError with the SQL code -804 "Incorrect values within SQLDA structure". Fixed
196. Incorrect dataset work with macros of the same name and query text changes after setting the macro values.. Fixed
197. Incorrect behaviour of the LocateNext method. It returned incorrect results if the last current dataset record met the searching condition. Fixed
198. Incorrect C++ Builder package compilation. Fixed
199. An error appeared in poProtectedEdit on closing the transaction by CommitRetaining. Fixed
200. An error Invalid Blob_id appeared on inserting a blob from the dataset by the stored procedure without Refresh after Post. Fixed
201. An error in the TFIBXSQLVAR.SetAsXSQLVAR method. Sometimes it caused errors in BatchXXX methods.
202. An error in poKeepSorting, values of sorted fields were not inserted after Insert. Fixed.
203. Changes in IB_Services (defines for Kylix).

### Version 6.4

#### Features and enhancements:

204. A new TpFIBDataSet event has been added:
     property AfterUpdateRecord: TFIBAfterUpdateRecordEvent read FAfterUpdateRecord
     write FAfterUpdateRecord
     where
     TFIBAfterUpdateRecordEvent = procedure(DataSet: TDataSet; UpdateKind: TUpdateKind;
     var Resume:boolean) of object;
     The event happens during ApplyUpdates and ApplyUpdToBase methods for every record modification sent to the server. The event handler is called AFTER the query execution.
205. TpFIBDataSet has a new option - poRefreshAfterDelete. If it is set to True, Refresh for the modified record is called after calling of the Delete method. If the Refresh attempt has been a success (i.e. the record has not been physically deleted), this record won't be deleted from cache and will remain visible.
206. In FIBPlusTools the Preferences tab has a new option poUseLargeIntField in PrepareOptions and DateTimeDisplay setting in DefaultFormats
207. Now FIBPlus components and FIBPlusTools are compatible with Delphi 2006.

#### Fixed bugs:

208. Minor fixes in SQLNavigator in FIBPlusTools: on opening SQL Navigator window in a new application project (File->New->Application; FIBPlus -> SQL Navigator) the default module (Unit1.pas) disappeared. Fixed.
209. Minor fixes in the SQL text search in SQLEditor.
210. An error in the Locate method (Locate on deleted row returned True). Fixed.
211. An error of handling Field.DisplayFormat, type "#,##0.00;-#,##0.00; ;" Fixed.
212. Incorrect work of SQL Editor with the flag "Use Selected Fiedls Only". Fixed.
213. An error of RefreshSQL in SQL Editor occurred because of the commented text at the beginning of SelectSQL. Fixed.
214. Incorrect work of the dcForceMasterRefresh option. Fixed.
215. An error in poKeepSorting on trying to change the first TpFIBDataSet record. Fixed.
216. An error in poProtectedEdit. The current record position was incorrect. Fixed.
217. Workaround for the internal Delphi compiler error E5912, appeared on recompiling the code of the following type: FIBBCDField.Value:=1;.
218. An error which appeared on working with memory in TFIBStringField, when fields were created at design time and SQL text was changed at run time to increment the field length. Fixed.

### Version 6.4.1

#### Features and enhancements:

219. In BDS 2006 build TFIBDataSet is a descendant of the TWideDataSet class, not TDataSet.

#### Bugs fixed:

220. Lost TpFIBClientDataSet parameter values, which are defined in the OnBeforeOpen event handler. Fixed.
221. Memory leak on using DataSet.UniDirectional. Fixed.
222. An error of using macros with quotes. Fixed.
223. Incorrect Locate in rare cases. Fixed.
224. An error in Borland code. For more details see Bug Tracker.
225. An error in Borland code. For more details see Bug Tracker.
226. The Filter property did not work for LargeInt fields. Fixed.
227. AV on working with DoTrim if an empty string was used as an argument. Fixed.
228. Incorrect work of LocateNext, if not all the records have been selected to cache. Fixed.
229. Sometimes ExtLocate showed the last found record instead of the first one. This happened after searching records in sorted dataset if there were several records with similar fields. Fixed.

### Version 6.4.5

#### Features and enhancements:

230. Support of C++ Builder 2006 has been added.
231. Support of charset UTF8 fields for Firebird 2 has been added.
232. TpFIBDatabase has a new property UseBlrToTextFilter :Boolean. It activates/deactivates handling of BLOB fields with Blr (2) and Acl(3) subtypes.
233. Now the FIBDatabase.QueryValueAsStr method returns an empty string, if the query returns nothing or the Null field.
234. TpFIBDatabase has a new event handler: TOnApplyFieldRepository=procedure(DataSet:TDataSet;Field:TField;FieldInfo:TpFIBFieldInfo) of object;
235. DSContainer has a new event handler: TOnApplyFieldRepository=procedure(DataSet:TDataSet;Field:TField;FieldInfo:TpFIBFieldInfo) of object;
236. DSContainer has a new property: IsGlobal:boolean. If this property is set to True, DSContainer works for ALL datasets of the application.
237. SQL queries "COMMIT" and "ROLLBACK" are handled differently now. Instead of the queries the server gets corresponding transactions. Such behaviour enables to correctly close the queries, executed in the closed transaction.

     Note: New features 4-6 enable developers to easily use their own settings in the field repository.

     Example:

     If you need to set the EditMask property, add the EDIT_MASK field to the repository table; create a container; make it global by setting the IsGlobal property to True; and write the following code in the OnApplyFieldRepository event handler:

         procedure TForm1.DataSetsContainer1ApplyFieldRepository(DataSet: TDataSet; Field: TField; FieldInfo: TpFIBFieldInfo);
         begin
          Field.EditMask:=FieldInfo.OtherInfo.Values['EDIT_MASK'];
         end;

#### Bugs fixed:

238. The error repository editor incorrectly worked on selecting "Unique Indices". Fixed .
239. An error in the method FIBDataSet.RecordFieldValue(Field:TField;aBookmark:TBookmark):Variant; has been fixed.
240. If the PLAN clause in TpFIBDataSet.SelectSQL used implicit JOIN which began with “(”, and a new value was set to TpFIBDataSet.PlanClause, the query resulted with a wrong PLAN clause (with unnecessary “(” symbol after the word PLAN). Fixed.
241. Incorrect error message handling of user exceptions in TpFibErrorHandler for Firebird 2 (because of a new feature PSQL Stack Trace in FB2). Fixed.
242. Incorrect handling of lost connection on restoring attempts. Fixed.
243. There was no BOOLEAN field handling in TFIBCustomDataSet.RecordFieldValue for InterBase 7. Fixed.
244. An error CloneCurRecord: error with boolean field in record (IB7). Fixed.
245. An error in LocateNext. LocateNext returned True if the last dataset record satisfied the Search conditions and Search started with this record. Fixed.
246. Incorrect work of LocateXXX methods with calculated field filtering. It appeared if Locate was done in not calculated fields, whereas filtering (Filtered) was done in calculated fields. Fixed.
247. EAccessViolation after handling OnUpdateError if CachedUpdates=True and OnUpdateError "UpdateAction:=uaAbort;". Fixed.
248. An error of working with stored procedures in SQLEditor. Fixed.
249. An error on generating RefreshSQL, if the table alias began with "AS". Fixed.
250. An error of executing several execute blocks. Fixed .
251. An error of lost connection handling in case of multiple connections to different databases. Fixed .
252. A minor error in FIBQuery.PrepareArraySqlVar. Fixed.
253. An error of setting a string value '000...' to the BCD field. An example: FIBBCDField1.asString:='0000'; Fixed.

### Version 6.5

#### Features and enhancements:

254. Now the SQLMonitor shows the SQL text after applying macros and conditions.
255. Now the OnFillClientBlob event is called after the record is first read as well as after it’s modified.
256. TpFIBDataSet.Options has a new option poUseSelectForLock. It can be used if poProtectedEdit = True. In case poProtectedEdit = True, the record will not be locked by “dummy update”, and the following statement will be used instead:
     Select * from TABLE1 WHERE ... for update with lock
     Note: This feature works ONLY for Firebird)
257. The FIBQuery.ExecuteImmediate method has been added. It executes the query immediately, without Prepare (see the isc_dsql_execute_immediate function in the IB API manual)
258. Now ExecuteImmediate executes DDL queries.
259. The CopyFieldsProperties procedure has new properties:
     AutoGenerateValue, ConstraintErrorMessage, CustomConstraint, Tag and Index.
260. The pFIBDataSet.ReceiveEvents property and the pFIBDataSet.OnUserEvent event are being deprecated and will be removed from the main code in future versions. People, who are still using this property should compile the library with the define USE_DEPRECATE_METHODS2 in FIBPlus.inc.

#### Bugs fixed:

261. Occasionally an incorrect record was added to a sorted dataset. Fixed.
262. An error in TpFIBCustomService.GenerateSPB occurred if the Params property was empty. Fixed.
263. On changing the Filter property previous filter results were not refreshed. Fixed.
264. An error in the Locate method on searching numerical values in string fields. Fixed.
265. The SQLMonitor worked incorrectly on exception monitoring (sometimes caused suspension). Fixed.
266. Incorrect behaviour of the SQL dataset editor with queries containing the same table in several places. Fixed (guaranteed for Firebird 2 only).
267. Cached calculated fields in TFIBCustomDataSet.RecordFieldValue did not have the ftSmallInt type. Fixed.
268. Incorrect handling of fields with charset UTF8 and collate, different from the default value. Fixed.
269. If the database was in the shutdown mode, the connection automatically closed. Then the lost connection was handled (with pFibErrorHandler). Fixed.
270. An error in the query generator has been fixed: the field type was not shown for DOUBLE PRECISION fields. Fixed.
271. A small memory leak on working with the BLOB parameters. Fixed.
272. An error on locating a Unicode-string in the field varchar(unicode_fss) if poTrimCharFields was set to True. Fixed.
273. Function InvertOrderClause(const OrderText:string):string; incorrectly functioned:
     it did not handle Order By using NULLS FIRST, and thus caused incorrect work of the confined local buffer for such queries). Fixed.
274. TpFIBDataSet.PSInTransaction, PSStartTransaction,PSEndTransaction methods functioned incorrectly. Fixed.
275. An error on executing DDL queries in the Unicode Connect (comments in languages other than English were corrupted). Fixed.

     ### Version 6.7

     #### Features and enhancements:

276. Now FIBPlus supports Delphi 2007
277. Now FIBPlus supports InterBase 2007

- A new define has been added to FIBPlus.inc {$DEFINE SUPPORT_IB2007}. If it is set, some InterBase 2007 features are added to FIBPlus
- A new method TpFIBDatabase.IsIB2007Connect:boolean; has been added
- A news InstanceName property has been added to ConnectParams

278. Now FIBPlus supports charset SUPPORT_KOI8_CHARSET and define in FIBPlus.inc {$DEFINE SUPPORT_KOI8_CHARSET}
279. The procedure TFIBXSQLVAR.SetAsVariant(Value: Variant); method has been changed to support the OleVariant data type (thanks to Danny Van den Wouwer)
280. Now you can select a generator from the generator list in the dataset repository editor.
281. A new subproperty IB2007: TIBConnectParams has been added to the TConnectParams property in TpFIBDatabase, where TIBConnectParams has a new field InstanceName: string. (Works only with the define $DEFINE SUPPORT_IB2007})
282. Now you can separately set the connection port in the TpFIBDatabase editor (only for Firebird).

#### Bugs fixed:

283. Such values as e.g {00000000-0000-0000-0000-000000000000} were incorrectly shown in TFIBGuidField. Fixed.
284. An error occurred on calling the IsEmpty method if the DataSet.CacheModelOptions .CacheModelKind= cmkLimitedBufferSize property was defined. Fixed.
285. An error occurred in the Sort procedure (unit fibDataset) with defined DisableScrollEvents if the dataset contained 0 or 1 record. Fixed.
286. An error in the function TpFIBDataSet.PSGetParams: TParams method has been fixed (thanks to Danny Van den Wouwer).
287. pFIBClientDataSet has been improved in order to operate correctly with Unicode fields in BDS2006.
288. An error in the TFIBQuery.DoAfterExecute method caused incorrect order of operations in SQLMonitor. Fixed (thanks to Danny Van den Wouwer).
289. An error occurred on changing the client library at runtime. Fixed.
290. In the TFIBXSQLVAR.GetAsDateTime method an error occurred if the data value was less than the initial InterBase date value. Fixed.
291. Such comments as Firebird (--) were incorrectly parsed in the WhereClause method. Fixed.
292. An error occurred on processing queries with the "with" command for Firebird 2.1. Fixed.
293. TGUID fields did not work for TClientDataSet. Fixed (thanks to Anton Tril).
294. TGUID fields did not work with QuantumGrid. Fixed (thanks to Anton Tril).
295. The lost connection with the server was processed incorrectly when TFIBSQLLogger was connected to TpFIBDatabase. The program loop occurred and OnLostConnect was called repeatedly. If you disconnected TFIBSQLLogger from TpFIBDatabase everything worked well. Fixed.
296. Now the TBeforeLoadBlobFromSwap and TBeforeLoadBlobFromSwap event handlers are declared differently. The old declaration operated incorrectly for Delphi 5.

Prices in Euro:
235 (1 copy)
1250 (unlimited)
Volume discounts are available...

- Download
- Purchase
- Support
- Screenshots
- Articles
- Features
- Testimonials
- Sales Geography
- Who uses FIBPlus?

When I had to find the best component to connect to my Firebird databases, FIBPlus imposed itself with its rapidity and reliability. Most importantly, it continued to evolve to be even better and whenever we had a problem, it was fixed promptly by Devrace team. We use FIBPlus in many projects related to Healthcare. We have hundreds of users who access databases up to 8 GB in size. I think there are many good third-party components out there, but not so many with an excellent support like the one provided for FIBPlus components. Thanks to you. >>
Evelyne Girard, Canada
FOR CUSTOMERS
Download full versions and updates in our Customer's Center