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 308 by tony, Sat Jul 18 10:26:30 2020 UTC vs.
ibx/branches/udr/changelog (file contents), Revision 379 by tony, Mon Jan 10 10:08:03 2022 UTC

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

Comparing:
ibx/trunk/fbintf/changelog (property svn:eol-style), Revision 308 by tony, Sat Jul 18 10:26:30 2020 UTC vs.
ibx/branches/udr/changelog (property svn:eol-style), Revision 379 by tony, Mon Jan 10 10:08:03 2022 UTC

# Line 0 | Line 1
1 + native

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines