ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/changelog
(Generate patch)

Comparing:
ibx/trunk/fbintf/changelog (file contents), Revision 272 by tony, Mon Feb 4 13:34:37 2019 UTC vs.
ibx/branches/journaling/fbintf/changelog (file contents), Revision 364 by tony, Tue Dec 7 13:30:09 2021 UTC

# Line 1 | Line 1
1 < FBINTF Change Log  version          (1.1-4 Build 11456)  Fri, 28 Dec 2018 10:04:19 +0000
1 > FBINTF Change Log  version          (1.4-0 Build 12952) Tue, 07 Dec 2021 11:53:46 +0000
2 >
3 > 1. Client side journaling support added. Interface changes
4 >   IAttachment
5 >    function JournalingActive: boolean;
6 >    function GetJournalOptions: TJournalOptions;
7 >    function StartJournaling(aJournalLogFile: AnsiString): integer; overload;
8 >    function StartJournaling(aJournalLogFile: AnsiString; Options: TJournalOptions): integer; overload;
9 >    procedure StopJournaling(RetainJournal: boolean);
10 >
11 > 2. Transactions may now be given a local transaction name:
12 >   IFirebirdAPI
13 >     function StartTransaction(Attachments: array of IAttachment;
14 >             TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload;
15 >             TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit;
16 >             aName: AnsiString=''): ITransaction; overload;
17 >     function StartTransaction(Attachments: array of IAttachment;
18 >             TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload;
19 >             TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit;
20 >             aName: AnsiString=''): ITransaction; overload;
21 >
22 >   IAttachment
23 >    function StartTransaction(TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload;
24 >    function StartTransaction(TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload;
25 >    function StartTransaction(TPB: array of byte;
26 >                              DefaultCompletion: TTransactionCompletion=taCommit;
27 >                              aName: AnsiString=''): ITransaction; overload;
28 >    function StartTransaction(TPB: ITPB;
29 >                              DefaultCompletion: TTransactionCompletion=taCommit;
30 >                              aName: AnsiString=''): ITransaction; overload;
31 >
32 >  ITransaction
33 >    function GetTransactionName: AnsiString;
34 >    procedure SetTransactionName(aValue: AnsiString);
35 >
36 > 3. Additional Transaction information
37 >     ITPB.function AsText: AnsiString; {Returns TPB as a text string}
38 >
39 >   ITransaction
40 >     function GetDefaultCompletion: TTransactionCompletion;
41 >     function GetJournalingActive(attachment: IAttachment): boolean; {attachment must be specified when multi-database transaction}
42 >
43 > 4. New IAttachment helper functions
44 >     function HasTable(aTableName: AnsiString): boolean;
45 >     function GetAttachmentID: integer;
46 >
47 > FBINTF Change Log  version          (1.3-3 Build 12935) Mon, 06 Dec 2021 23:17:13 +0000
48 >
49 > 1. Fix compile error with fpc trunk (3.3.1 and later), due to type change to tzname in "unix" unit.
50 >
51 > 2. Remove constraint in IAttachment.HasScollableCursors that returned false when
52 >   using remote protocol. Scrollable cursors with remote database expected to
53 >   be support for Firebird 4.0.1 onwards. Note: Firebird 4.0.0 will return
54 >   a not supported error.
55 >
56 > 3. IStatement: new function;
57 >    TStatementFlag = (stHasCursor,stRepeatExecute,stScrollable);
58 >    TStatementFlags = set of TStatementFlag;
59 >    function GetFlags: TStatementFlags;
60 >
61 > 4. Revised behaviour for IStatement.ExecuteQuery in order to preserve backwards
62 >   compatibility.
63 >   In Firebird 5, Update..Returning may returns multiple rows and hence the statemen
64 >   type changes from ExecProcedure to Select. So that ExecuteQuery can continue
65 >   to be used with Update...Retruning statements that return a singleton row,
66 >   instead of raising an exception when ExecuteQuery is used with a (SELECT) statement,
67 >   it will open the cursor and return the first row only.
68 >
69 > 5. ITransaction: new functions:
70 >    function GetIsReadOnly: boolean;
71 >    function GetTransactionID: integer;
72 >    function GetTrInformation(Requests: array of byte): ITrInformation; overload;
73 >    function GetTrInformation(Request: byte): ITrInformation; overload;
74 >
75 >   The latter two return the Transaction Information block. The first two extract
76 >   information the Transaction Information block
77 >
78 > 6. New function TSQLTokeniser.ReadCharacters
79 >   Used internally.
80 >
81 > 7. IStatement: GetProcessedSQL bug fix. No longer raises and error if SQL contains
82 >   parameter placeholders instead of named parameters.
83 >
84 > 8. ITransaction (Firebird 3 and later): An exception raised when freeing an underlying
85 >   transaction handle is now ignored if Rollback/Commit is called with Force=true
86 >
87 > FBINTF Change Log  version          (1.3-2 Build 12889) Sun, 24 Oct 2021 13:49:28 +0100
88 >
89 > 1. TFBClientAPI.GetProcAddr. Add check for nil reference.
90 >
91 > 2. IStatement: new methods:
92 >    procedure SetStaleReferenceChecks(Enable:boolean); {default true}
93 >    function GetStaleReferenceChecks: boolean;
94 >
95 >   In previous versions, stale reference checks were always enabled. This allows the
96 >   user to disable them on a per statement basis. Note this can risk out-of-date
97 >   statement BLR. See User Guide.
98 >
99 > 3. IBUtils: TSQLwithNamedParamsTokeniser now recognises a CASE...END block within a
100 >   stored procedure and hence avoids replacing named parameters within a containing
101 >   BEGIN..END block.
102 >
103 > 4. ISQLParam: using a string value to set an integer field with a scale factor of
104 >   zero is now treated as a special case to avoid the risk of floating point
105 >   rounding errors affecting pure integers.
106 >
107 > 5. ISQLParam:  Review and tidy-up of SetAsString for numeric types.
108 >
109 > 6. ISQLParam is now subclassed from IParamMetaData, which provides access to the mutable
110 >   SQL Parameter metadata (methods moved from ISQLParam).
111 >
112 > 7. ISQLParam: new method
113 >     function getColMetadata: IParamMetaData;
114 >   This instance of IParamMetaData returns the original column metadata which is unmutable.
115 >   Note: ISQLParam metadata can change after a parameter value has been set e.g when
116 >   setting a VARCHAR column to an integer value.
117 >
118 > 8. IStatement: can now set cursor name when opening a cursor. New overloaded method:
119 >    procedure Prepare(CursorName: AnsiString; aTransaction: ITransaction=nil); overload;
120 >   also IAttachment:
121 >    function Prepare(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; CursorName: AnsiString=''): IStatement; overload;
122 >    function Prepare(transaction: ITransaction; sql: AnsiString; CursorName: AnsiString=''): IStatement; overload;
123 >    function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString;
124 >                       aSQLDialect: integer; GenerateParamNames: boolean=false;
125 >                       CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload;
126 >    function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString;
127 >                       GenerateParamNames: boolean=false;
128 >                       CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload;
129 >
130 > 9. Support for scrollable cursors added. New/updated methods:
131 >   IAttachment:
132 >    function HasScollableCursors: boolean;
133 >    function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer;
134 >                             Scrollable: boolean=false): IResultSet; overload;
135 >    function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload;
136 >    function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean;
137 >                             params: array of const): IResultSet; overload;
138 >    function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false;
139 >                             params: array of const): IResultSet; overload;
140 >    function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean;
141 >                             params: array of const): IResultSet; overload;
142 >    function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer;
143 >                             Scrollable: boolean=false): IResultSet; overload;
144 >    function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload;
145 >    function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean;
146 >                             params: array of const): IResultSet; overload;
147 >    function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean=false): IResultSet; overload;
148 >    function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean;
149 >                             params: array of const): IResultSet; overload;
150 >   IStatement:
151 >     function OpenCursor(Scrollable: boolean; CursorName: AnsiString =''; aTransaction: ITransaction=nil): IResultSet; overload;
152 >   IResultSet:
153 >    function FetchPrior: boolean; {fetch previous record}
154 >    function FetchFirst:boolean; {fetch first record}
155 >    function FetchLast: boolean; {fetch last record}
156 >    function FetchAbsolute(position: Integer): boolean; {fetch record by its absolute position in result set}
157 >    function FetchRelative(offset: Integer): boolean; {fetch record by position relative to current}
158 >    function IsBof: boolean;
159 >
160 > 10. IArray: tidyup of SetAsString method to ensure correct handling of fixed point numbers.
161 >
162 > 11. IBUtils: TSQLTokeniser. CRLF now combined by low level parser into sqltEOL token. This
163 >    may be noticeable when a line separator occurs inside quoted text. The quoted text
164 >    output by the tokeniser will now use the platform specific lineEnding regardless
165 >    of whether the input uses the CRLF or LF as a line separator.
166 >
167 > 12. IStatement, IResultsSet: Support for scrollable cursors added (note: local databases only)
168 >
169 >
170 > FBINTF Change Log  version          (1.3-1 Build 12776) Mon, 23 Aug 2021 11:09:33 +0100
171 >
172 > 1. Integer decodes in information blocks (e.g. IDBInfoItem) widened from 32 bit to 64-bit integers.
173 >
174 > 2. Support for inline blob encoding. Blob values pass using the "SetAsString" method
175 >   will now be encoded inline (i.e. as part of the parameter buffer) if they are
176 >   shorter than a pre-set limit. Longer values continue to be saved as blobs as a
177 >   separate server interaction. This is intended as a performance optimisation.
178 >
179 >   The pre-set limit defaults to 8192 bytes and can be inspected/modified using the new
180 >   IAttachment interface functions:
181 >
182 >    function GetInlineBlobLimit: integer;
183 >    procedure SetInlineBlobLimit(limit: integer);
184 >
185 > 3. Support for Firebird 4 IBatch interface added. This is largely transparent to the API
186 >   user as the functionality is embedded in the implementation of the IStatement
187 >   interface. Three new functions are defined:
188 >
189 >    procedure AddToBatch;
190 >    function ExecuteBatch(aTransaction: ITransaction=nil): IBatchCompletion;
191 >    procedure CancelBatch;
192 >    function GetBatchCompletion: IBatchCompletion;
193 >    function GetBatchRowLimit: integer;
194 >    procedure SetBatchRowLimit(aLimit: integer);
195 >
196 >   Also
197 >
198 >    function IsInBatchMode: boolean;        {true after call to execute(eaDefer)}
199 >    function HasBatchMode: boolean;         {true if and only if IBatch Supported}
200 >
201 >   For more information see the User Guide.
202 >
203 > 4. Default error message contents. Now aligned with User Guide section 10.2 i.e. error messages
204 >   provided with the EIBInterBaseError now include all three parts.
205 >
206 > 5. Firebird.pas and include files updated to Firebird 4.0.0
207 >
208 > 6. New IStatement method: function GetSQLStatementTypeName: AnsiString;
209 >   Returns SQL Statement type as a text string;
210 >
211 > 7. ISQLData.AsInteger and AsInt64 now use "Round" to convert a float field to
212 >   an integer instead of "trunc". This is for compatibility with TFloatField.AsInteger.
213 >
214 > FBINTF Change Log  version          (1.2-1 Build 12552) Wed, 09 Jun 2021 13:05:40 +0100
215 >
216 > 1. Big fix for Firebird 4.0. A internal change in Firebird 4.0.0 from RC1 flushed out a
217 >   typo in FB30Statement.pas that caused an unknown parameter error.
218 >
219 > FBINTF Change Log  version          (1.2-0 Build 12520) Fri, 19 Feb 2021 13:27:23 +0000
220 >
221 > 1. Imported (Firebird) constants updated for Firebird 4.
222 >
223 > 2. Firebird.pas from Firebird 4 integrated into source code tree.
224 >
225 > 3. Added Support for TIMETAMP WITH TIME ZONE and TIME WITH TIME ZONE data types.
226 >
227 > 4. Added Support for SQL_DEC16, SQL_DEC34 and extended NUMERIC precision.
228 >
229 > 5. New unit 'FBClientLib.pas' added and provides new interface IFBIMasterProvider.
230 >   QueryInterface may be used to coerce this interface from IFirebirdAPI. The
231 >   interface provides a single method "function GetIMasterIntf: IMaster". This provides
232 >   type safe access to the Firebird IMaster interface and avoids the need to turn
233 >   off object checks when coercing "function GetIMaster: TObject" to IMaster.
234 >
235 > 6. New IFirebirdAPI Calls:
236 >    function HasLocalTZDB: boolean;
237 >    function HasTimeZoneSupport: boolean;
238 >    function HasExtendedTZSupport: boolean;
239 >    procedure SQLDecFloatEncode(aValue: tBCD; SQLType: cardinal; bufptr: PByte);
240 >    function SQLDecFloatDecode(SQLType: cardinal; scale: integer; bufptr: PByte): tBCD;
241 >
242 > 7. New IAttachment Calls:
243 >    function HasDecFloatSupport: boolean;
244 >    function GetTimeZoneServices: ITimeZoneServices;
245 >    function HasTimeZoneSupport: boolean;
246 >
247 > 8. New Interface ITimeZoneServices.
248 >
249 > 9. New ISQLData API Calls:
250 >    procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload;
251 >    procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload;
252 >    procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload;
253 >    procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload;
254 >    function GetAsUTCDateTime: TDateTime;
255 >    function GetAsBCD: tBCD;
256 >
257 > 10. New ISQLParam API Calls
258 >    procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload;
259 >    procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload;
260 >    procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload;
261 >    procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload;
262 >    function GetAsUTCDateTime: TDateTime;
263 >    function GetAsBCD: tBCD;
264 >    function GetStatement: IStatement;
265 >    function GetTransaction: ITransaction;
266 >    procedure SetAsTime(aValue: TDateTime; OnDate: TDateTime; aTimeZoneID: TFBTimeZoneID); overload;
267 >    procedure SetAsTime(aValue: TDateTime; OnDate: TDateTime; aTimeZone: AnsiString); overload;
268 >    procedure SetAsDateTime(aValue: TDateTime; aTimeZoneID: TFBTimeZoneID); overload;
269 >    procedure SetAsDateTime(aValue: TDateTime; aTimeZone: AnsiString); overload;
270 >    procedure SetAsUTCDateTime(aUTCTime: TDateTime);
271 >    procedure SetAsBcd(aValue: tBCD);
272 >
273 > 11. New IArray API Calls
274 >    procedure GetAsDateTime(index: array of integer; var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload;
275 >    procedure GetAsDateTime(index: array of integer; var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload;
276 >    procedure GetAsTime(index: array of integer; var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload;
277 >    procedure GetAsTime(index: array of integer; var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload;
278 >    function GetAsUTCDateTime(index: array of integer): TDateTime;
279 >    procedure SetAsDateTime(index: array of integer; aValue: TDateTime; aTimeZoneID: TFBTimeZoneID); overload;
280 >    procedure SetAsDateTime(index: array of integer; aValue: TDateTime; aTimeZone: AnsiString); overload;
281 >    procedure SetAsTime(index: array of integer; aValue: TDateTime; OnDate: TDateTime; aTimeZoneID: TFBTimeZoneID); overload;
282 >    procedure SetAsTime(index: array of integer; aValue: TDateTime; OnDate: TDateTime; aTimeZone: AnsiString); overload;
283 >
284 > 12. Utility functions in IBUtils
285 >    function ParseDateTimeTZString(aDateTimeStr: Ansistring; var aDateTime: TDateTime;
286 >              var aTimezone: AnsiString; aFormatSettings: TFormatSettings; TimeOnly: boolean=false): boolean;
287 >    procedure FBDecodeTime(aTime: TDateTime; var Hour, Minute, Second: word; var DeciMillisecond: cardinal);
288 >    function FBEncodeTime(Hour, Minute, Second, DeciMillisecond: cardinal): TDateTime;
289 >    function FBFormatDateTime(fmt: AnsiString; aDateTime: TDateTime): AnsiString;
290 >    function FormatTimeZoneOffset(EffectiveTimeOffsetMins: integer): AnsiString;
291 >    function DecodeTimeZoneOffset(TZOffset: AnsiString; var dstOffset: integer): boolean;
292 >
293 > 13. IDPB, ITPB and ISPB: new interface method
294 >      function AddByTypeName(ParamTypeName: AnsiString): IDPBItem/ITPBItem/ISPBItem;
295 >    This is used to add a parameter block item by the string equivalent of its
296 >    symbolic type name. e.g. DPB.AddByTypeName('isc_dpb_user_name').AsString := '...'
297 >
298 > 14. IDPBItem/ITPBItem/ISPBItem: new interface method:
299 >      function getParamTypeName: AnsiString;
300 >
301 > 15. fb_shutdown now called before unloading Firebird library. This can avoid a
302 >     SIGEVENT error when a programme using the embeded server is unloaded.
303 >
304 > FBINTF Change Log  version          (1.1-6 Build 12237) Tue, 21 Jul 2020 08:54:21 +0100
305 >
306 > 1. GetImplementationVersion now correctly returns '3.0' for Firebird 3 API
307 >   with a Firebrid 3 client library.
308 >
309 > 2. Linux Only: FIREBIRD environment variable is now checked when loading the client library.
310 >    If a client library path is not explicitly provided and the FIREBIRD environment
311 >    variable is set then the directory given by this variable and any 'lib' subdirectory
312 >    are searched for the Firebird client library. Only if none is found, is the default
313 >    client library used.
314 >
315 > 3.  IUtil.FormatStatus now used to format error messages when using new API
316 >
317 > 4.  Fixed Array SDL: array_desc_scale now correctly encoded as a signed integer.
318 >
319 > 5.  SQL_TEXT handling changed. When the value of an SQL_TEXT (i.e. fixed width string) column is
320 >    returned using GetAsString and the string codepage is UTF8, the string is truncated so
321 >    that the byte length corresponds to the number of characters specified for the column.
322 >    SQL_TEXT strings are no longer automatically trimmed to remove all trailing white space. This is
323 >    correct behaviour but may affect some implementations that relied upon automatic
324 >    trimming of trailing white space.
325 >
326 > 6.  New IFirebirdAPI Calls:
327 >      function GetClientMajor: integer;
328 >      function GetClientMinor: integer;
329 >
330 > 7.  IColumnMetaData and IArrayMetaData: new method
331 >      function GetCharSetWidth: integer;
332 >
333 > FBINTF Change Log  version          (1.1-5 Build 12022) Fri, 17 Apr 2020 10:35:55 +0100
334 >
335 > 1. ISQLParams.GetHasCaseSensitiveParams added. Returns true if param names are
336 >   case sensitive
337 >
338 > 2. Single line SQL comments starting with '--' are now recognised by SQL Parser.
339 >
340 > 3. New API Calls:
341 >        IColumnMetaData.GetStatement
342 >        IColumnMetaData.GetTransaction
343 >        ISQLData.GetStrDataLength
344 >        IResults.GetStatement
345 >        IAttachment.OpenBlob (using Blob metadata)
346 >        IAttachment.OpenArray (using array metadata)
347 >
348 > 4. FBMessages: removal of unused messages
349 >
350 > 5. TFBArray.Create (2nd case): ensure that FFirebirdClientAPI is correctly set.
351 >
352 > 6. TIBSQLStatementType: SQLSavePoint added to end of enumeration.
353 >
354 > FBINTF Change Log  version          (1.1-4 Build 11515)  Fri, 28 Dec 2018 10:04:19 +0000
355  
356   1. Fix a problem with the SQL parameter parser that failed to recognise parameters
357     where the second character of the parameter name is a numeric.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines