1 |
+ |
FBINTF Change Log version (1.4-0 Build 13107) Wed, 19 Jan 2022 12:08:21 +0000 |
2 |
+ |
|
3 |
+ |
1. Support package fbudr added for support of User Defined Routines (UDRs), and package |
4 |
+ |
fbudrtestbed for client side debugging of UDR libraries. |
5 |
+ |
|
6 |
+ |
2. Package layout changed with introduction of udr support. IB*.pas files moved from |
7 |
+ |
root directory to "client". IBHeader move to "Client". |
8 |
+ |
|
9 |
+ |
3. Delphi packages: all packages now compile .dcp and .bpi files to either |
10 |
+ |
fbintf\Win32\Debug or fbintf\Win64\Debug by default. Please remove any pre-existing |
11 |
+ |
fbintf.dcp and fbintf.bpi files from other locations. |
12 |
+ |
|
13 |
+ |
4. Client side journaling support added. Interface changes |
14 |
+ |
IAttachment |
15 |
+ |
function JournalingActive: boolean; |
16 |
+ |
function GetJournalOptions: TJournalOptions; |
17 |
+ |
function StartJournaling(aJournalLogFile: AnsiString): integer; overload; |
18 |
+ |
function StartJournaling(aJournalLogFile: AnsiString; Options: TJournalOptions): integer; overload; |
19 |
+ |
function StartJournaling(S: TStream; Options: TJournalOptions): integer; overload; |
20 |
+ |
procedure StopJournaling(RetainJournal: boolean); |
21 |
+ |
|
22 |
+ |
5. Transactions may now be given a local transaction name: |
23 |
+ |
IFirebirdAPI |
24 |
+ |
function StartTransaction(Attachments: array of IAttachment; |
25 |
+ |
TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload; |
26 |
+ |
TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit; |
27 |
+ |
aName: AnsiString=''): ITransaction; overload; |
28 |
+ |
function StartTransaction(Attachments: array of IAttachment; |
29 |
+ |
TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload; |
30 |
+ |
TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit; |
31 |
+ |
aName: AnsiString=''): ITransaction; overload; |
32 |
+ |
|
33 |
+ |
IAttachment |
34 |
+ |
function StartTransaction(TPB: array of byte; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload; |
35 |
+ |
function StartTransaction(TPB: ITPB; DefaultCompletion: TTransactionCompletion=taCommit): ITransaction; overload; |
36 |
+ |
function StartTransaction(TPB: array of byte; |
37 |
+ |
DefaultCompletion: TTransactionCompletion=taCommit; |
38 |
+ |
aName: AnsiString=''): ITransaction; overload; |
39 |
+ |
function StartTransaction(TPB: ITPB; |
40 |
+ |
DefaultCompletion: TTransactionCompletion=taCommit; |
41 |
+ |
aName: AnsiString=''): ITransaction; overload; |
42 |
+ |
|
43 |
+ |
ITransaction |
44 |
+ |
function GetTransactionName: AnsiString; |
45 |
+ |
procedure SetTransactionName(aValue: AnsiString); |
46 |
+ |
|
47 |
+ |
6. Additional Transaction information |
48 |
+ |
ITPB.function AsText: AnsiString; {Returns TPB as a text string} |
49 |
+ |
|
50 |
+ |
ITransaction |
51 |
+ |
function GetDefaultCompletion: TTransactionCompletion; |
52 |
+ |
function GetJournalingActive(attachment: IAttachment): boolean; {attachment must be specified when multi-database transaction} |
53 |
+ |
|
54 |
+ |
7. New IAttachment helper functions |
55 |
+ |
function HasTable(aTableName: AnsiString): boolean; |
56 |
+ |
function HasFunction(aFunctionName: AnsiString): boolean; |
57 |
+ |
function HasProcedure(aProcName: AnsiString): boolean; |
58 |
+ |
function GetAttachmentID: integer; |
59 |
+ |
function GetCharSetID: integer; |
60 |
+ |
|
61 |
+ |
8. IStatement: if the BatchRowLimit is set to maxint, the maximum possible buffer size |
62 |
+ |
will be allocted for batch operations. |
63 |
+ |
|
64 |
+ |
9. IStatement, IColumnMetaData and ISQLParam all now consistently provide: |
65 |
+ |
function GetStatement: IStatement; |
66 |
+ |
function GetTransaction: ITransaction; |
67 |
+ |
function GetAttachment: IAttachment; |
68 |
+ |
|
69 |
+ |
10. Internal: a more disciplined approach to the handling of Firebird.IReferenceCounted |
70 |
+ |
interfaces. |
71 |
+ |
|
72 |
+ |
11. New interface type: IFBNumeric. IFBNumeric is implemented in the unit FBNumeric |
73 |
+ |
and concentrates all handling of Fixed Point numbers. New ISQLItem and ISQLParam |
74 |
+ |
functions getAsNumeric and setAsNumeric allow for direct retrival and manipulation |
75 |
+ |
of numerics without loss of precision. |
76 |
+ |
|
77 |
+ |
12. TryStrToNumeric and NumericToDouble moved from IBUtils to FBNumeric. |
78 |
+ |
|
79 |
+ |
13. ISQLParams new method "Clear" |
80 |
+ |
|
81 |
+ |
14. Connection Info (e.g. ODS Version, Remote Protocol) now retrieved on first |
82 |
+ |
request rather than on attachment connect. |
83 |
+ |
|
84 |
+ |
15. IStatus.IBDataBaseErrorMessages now defaults to [ShowIBMessage]. This reflects the |
85 |
+ |
fact that SQLCodes are soon to be deprecated. In the future, the other options |
86 |
+ |
will be silently ignored if SQLCode support is not present in the Firebird |
87 |
+ |
Client library. |
88 |
+ |
|
89 |
+ |
16. ITransaction changes Rollback and Commit from procedures to functions: |
90 |
+ |
function Commit(Force: boolean=false): TTrCompletionState; |
91 |
+ |
function Rollback(Force: boolean=false): TTrCompletionState; |
92 |
+ |
|
93 |
+ |
Specifically, this is to allow the functions to report back a failed commit or |
94 |
+ |
rollback when Force = true. In the case, the transaction handle has been |
95 |
+ |
released, while the transaction remains in limbo. |
96 |
+ |
|
97 |
+ |
17. IAttachment ExecImmediate, ExecuteSQL and OpenCursorAtStart. |
98 |
+ |
When the transaction parameters are provided as an array of const and the |
99 |
+ |
statement fails, the transaction is rolledback (forced) before the exception |
100 |
+ |
is raised. |
101 |
+ |
|
102 |
+ |
|
103 |
+ |
|
104 |
+ |
FBINTF Change Log version (1.3-3 Build 12935) Mon, 06 Dec 2021 23:17:13 +0000 |
105 |
+ |
|
106 |
+ |
1. Fix compile error with fpc trunk (3.3.1 and later), due to type change to tzname in "unix" unit. |
107 |
+ |
|
108 |
+ |
2. Remove constraint in IAttachment.HasScollableCursors that returned false when |
109 |
+ |
using remote protocol. Scrollable cursors with remote database expected to |
110 |
+ |
be support for Firebird 4.0.1 onwards. Note: Firebird 4.0.0 will return |
111 |
+ |
a not supported error. |
112 |
+ |
|
113 |
+ |
3. IStatement: new function; |
114 |
+ |
TStatementFlag = (stHasCursor,stRepeatExecute,stScrollable); |
115 |
+ |
TStatementFlags = set of TStatementFlag; |
116 |
+ |
function GetFlags: TStatementFlags; |
117 |
+ |
|
118 |
+ |
4. Revised behaviour for IStatement.ExecuteQuery in order to preserve backwards |
119 |
+ |
compatibility. |
120 |
+ |
In Firebird 5, Update..Returning may returns multiple rows and hence the statemen |
121 |
+ |
type changes from ExecProcedure to Select. So that ExecuteQuery can continue |
122 |
+ |
to be used with Update...Retruning statements that return a singleton row, |
123 |
+ |
instead of raising an exception when ExecuteQuery is used with a (SELECT) statement, |
124 |
+ |
it will open the cursor and return the first row only. |
125 |
+ |
|
126 |
+ |
5. ITransaction: new functions: |
127 |
+ |
function GetIsReadOnly: boolean; |
128 |
+ |
function GetTransactionID: integer; |
129 |
+ |
function GetTrInformation(Requests: array of byte): ITrInformation; overload; |
130 |
+ |
function GetTrInformation(Request: byte): ITrInformation; overload; |
131 |
+ |
|
132 |
+ |
The latter two return the Transaction Information block. The first two extract |
133 |
+ |
information the Transaction Information block |
134 |
+ |
|
135 |
+ |
6. New function TSQLTokeniser.ReadCharacters |
136 |
+ |
Used internally. |
137 |
+ |
|
138 |
+ |
7. IStatement: GetProcessedSQL bug fix. No longer raises and error if SQL contains |
139 |
+ |
parameter placeholders instead of named parameters. |
140 |
+ |
|
141 |
+ |
8. ITransaction (Firebird 3 and later): An exception raised when freeing an underlying |
142 |
+ |
transaction handle is now ignored if Rollback/Commit is called with Force=true |
143 |
+ |
|
144 |
+ |
9. Tidy up of exception handling code. Under the legacy API, fb_interpret is now |
145 |
+ |
used to get an IBError Message instead of isc_interprete. |
146 |
+ |
|
147 |
+ |
10. Internal tidyup. Native code now used for decoding integers and the events |
148 |
+ |
buffer. Avoids dependencies on fbclient functions isc_portable_integer, |
149 |
+ |
isc_event_block and isc_event_counts. |
150 |
+ |
|
151 |
+ |
11. New IAttachment function |
152 |
+ |
function GetAttachmentID: integer; |
153 |
+ |
|
154 |
+ |
12. Internal changes to TFBClientAPI, TFBAttachment and TFBTransaction and TFB30 |
155 |
+ |
subclasses to enable UDR support. |
156 |
+ |
|
157 |
+ |
FBINTF Change Log version (1.3-2 Build 12889) Sun, 24 Oct 2021 13:49:28 +0100 |
158 |
+ |
|
159 |
+ |
1. TFBClientAPI.GetProcAddr. Add check for nil reference. |
160 |
+ |
|
161 |
+ |
2. IStatement: new methods: |
162 |
+ |
procedure SetStaleReferenceChecks(Enable:boolean); {default true} |
163 |
+ |
function GetStaleReferenceChecks: boolean; |
164 |
+ |
|
165 |
+ |
In previous versions, stale reference checks were always enabled. This allows the |
166 |
+ |
user to disable them on a per statement basis. Note this can risk out-of-date |
167 |
+ |
statement BLR. See User Guide. |
168 |
+ |
|
169 |
+ |
3. IBUtils: TSQLwithNamedParamsTokeniser now recognises a CASE...END block within a |
170 |
+ |
stored procedure and hence avoids replacing named parameters within a containing |
171 |
+ |
BEGIN..END block. |
172 |
+ |
|
173 |
+ |
4. ISQLParam: using a string value to set an integer field with a scale factor of |
174 |
+ |
zero is now treated as a special case to avoid the risk of floating point |
175 |
+ |
rounding errors affecting pure integers. |
176 |
+ |
|
177 |
+ |
5. ISQLParam: Review and tidy-up of SetAsString for numeric types. |
178 |
+ |
|
179 |
+ |
6. ISQLParam is now subclassed from IParamMetaData, which provides access to the mutable |
180 |
+ |
SQL Parameter metadata (methods moved from ISQLParam). |
181 |
+ |
|
182 |
+ |
7. ISQLParam: new method |
183 |
+ |
function getColMetadata: IParamMetaData; |
184 |
+ |
This instance of IParamMetaData returns the original column metadata which is unmutable. |
185 |
+ |
Note: ISQLParam metadata can change after a parameter value has been set e.g when |
186 |
+ |
setting a VARCHAR column to an integer value. |
187 |
+ |
|
188 |
+ |
8. IStatement: can now set cursor name when opening a cursor. New overloaded method: |
189 |
+ |
procedure Prepare(CursorName: AnsiString; aTransaction: ITransaction=nil); overload; |
190 |
+ |
also IAttachment: |
191 |
+ |
function Prepare(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; CursorName: AnsiString=''): IStatement; overload; |
192 |
+ |
function Prepare(transaction: ITransaction; sql: AnsiString; CursorName: AnsiString=''): IStatement; overload; |
193 |
+ |
function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString; |
194 |
+ |
aSQLDialect: integer; GenerateParamNames: boolean=false; |
195 |
+ |
CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload; |
196 |
+ |
function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString; |
197 |
+ |
GenerateParamNames: boolean=false; |
198 |
+ |
CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload; |
199 |
+ |
|
200 |
+ |
9. Support for scrollable cursors added. New/updated methods: |
201 |
+ |
IAttachment: |
202 |
+ |
function HasScollableCursors: boolean; |
203 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; |
204 |
+ |
Scrollable: boolean=false): IResultSet; overload; |
205 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
206 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean; |
207 |
+ |
params: array of const): IResultSet; overload; |
208 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false; |
209 |
+ |
params: array of const): IResultSet; overload; |
210 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean; |
211 |
+ |
params: array of const): IResultSet; overload; |
212 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; |
213 |
+ |
Scrollable: boolean=false): IResultSet; overload; |
214 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
215 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean; |
216 |
+ |
params: array of const): IResultSet; overload; |
217 |
+ |
function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
218 |
+ |
function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean; |
219 |
+ |
params: array of const): IResultSet; overload; |
220 |
+ |
IStatement: |
221 |
+ |
function OpenCursor(Scrollable: boolean; CursorName: AnsiString =''; aTransaction: ITransaction=nil): IResultSet; overload; |
222 |
+ |
IResultSet: |
223 |
+ |
function FetchPrior: boolean; {fetch previous record} |
224 |
+ |
function FetchFirst:boolean; {fetch first record} |
225 |
+ |
function FetchLast: boolean; {fetch last record} |
226 |
+ |
function FetchAbsolute(position: Integer): boolean; {fetch record by its absolute position in result set} |
227 |
+ |
function FetchRelative(offset: Integer): boolean; {fetch record by position relative to current} |
228 |
+ |
function IsBof: boolean; |
229 |
+ |
|
230 |
+ |
10. IArray: tidyup of SetAsString method to ensure correct handling of fixed point numbers. |
231 |
+ |
|
232 |
+ |
11. IBUtils: TSQLTokeniser. CRLF now combined by low level parser into sqltEOL token. This |
233 |
+ |
may be noticeable when a line separator occurs inside quoted text. The quoted text |
234 |
+ |
output by the tokeniser will now use the platform specific lineEnding regardless |
235 |
+ |
of whether the input uses the CRLF or LF as a line separator. |
236 |
+ |
|
237 |
+ |
12. IStatement, IResultsSet: Support for scrollable cursors added (note: local databases only) |
238 |
+ |
|
239 |
+ |
|
240 |
+ |
FBINTF Change Log version (1.3-1 Build 12776) Mon, 23 Aug 2021 11:09:33 +0100 |
241 |
+ |
|
242 |
+ |
1. Integer decodes in information blocks (e.g. IDBInfoItem) widened from 32 bit to 64-bit integers. |
243 |
+ |
|
244 |
+ |
2. Support for inline blob encoding. Blob values pass using the "SetAsString" method |
245 |
+ |
will now be encoded inline (i.e. as part of the parameter buffer) if they are |
246 |
+ |
shorter than a pre-set limit. Longer values continue to be saved as blobs as a |
247 |
+ |
separate server interaction. This is intended as a performance optimisation. |
248 |
+ |
|
249 |
+ |
The pre-set limit defaults to 8192 bytes and can be inspected/modified using the new |
250 |
+ |
IAttachment interface functions: |
251 |
+ |
|
252 |
+ |
function GetInlineBlobLimit: integer; |
253 |
+ |
procedure SetInlineBlobLimit(limit: integer); |
254 |
+ |
|
255 |
+ |
3. Support for Firebird 4 IBatch interface added. This is largely transparent to the API |
256 |
+ |
user as the functionality is embedded in the implementation of the IStatement |
257 |
+ |
interface. Three new functions are defined: |
258 |
+ |
|
259 |
+ |
procedure AddToBatch; |
260 |
+ |
function ExecuteBatch(aTransaction: ITransaction=nil): IBatchCompletion; |
261 |
+ |
procedure CancelBatch; |
262 |
+ |
function GetBatchCompletion: IBatchCompletion; |
263 |
+ |
function GetBatchRowLimit: integer; |
264 |
+ |
procedure SetBatchRowLimit(aLimit: integer); |
265 |
+ |
|
266 |
+ |
Also |
267 |
+ |
|
268 |
+ |
function IsInBatchMode: boolean; {true after call to execute(eaDefer)} |
269 |
+ |
function HasBatchMode: boolean; {true if and only if IBatch Supported} |
270 |
+ |
|
271 |
+ |
For more information see the User Guide. |
272 |
+ |
|
273 |
+ |
4. Default error message contents. Now aligned with User Guide section 10.2 i.e. error messages |
274 |
+ |
provided with the EIBInterBaseError now include all three parts. |
275 |
+ |
|
276 |
+ |
5. Firebird.pas and include files updated to Firebird 4.0.0 |
277 |
+ |
|
278 |
+ |
6. New IStatement method: function GetSQLStatementTypeName: AnsiString; |
279 |
+ |
Returns SQL Statement type as a text string; |
280 |
+ |
|
281 |
+ |
7. ISQLData.AsInteger and AsInt64 now use "Round" to convert a float field to |
282 |
+ |
an integer instead of "trunc". This is for compatibility with TFloatField.AsInteger. |
283 |
+ |
|
284 |
+ |
FBINTF Change Log version (1.2-1 Build 12552) Wed, 09 Jun 2021 13:05:40 +0100 |
285 |
+ |
|
286 |
+ |
1. Big fix for Firebird 4.0. A internal change in Firebird 4.0.0 from RC1 flushed out a |
287 |
+ |
typo in FB30Statement.pas that caused an unknown parameter error. |
288 |
+ |
|
289 |
+ |
FBINTF Change Log version (1.2-0 Build 12520) Fri, 19 Feb 2021 13:27:23 +0000 |
290 |
+ |
|
291 |
+ |
1. Imported (Firebird) constants updated for Firebird 4. |
292 |
+ |
|
293 |
+ |
2. Firebird.pas from Firebird 4 integrated into source code tree. |
294 |
+ |
|
295 |
+ |
3. Added Support for TIMETAMP WITH TIME ZONE and TIME WITH TIME ZONE data types. |
296 |
+ |
|
297 |
+ |
4. Added Support for SQL_DEC16, SQL_DEC34 and extended NUMERIC precision. |
298 |
+ |
|
299 |
+ |
5. New unit 'FBClientLib.pas' added and provides new interface IFBIMasterProvider. |
300 |
+ |
QueryInterface may be used to coerce this interface from IFirebirdAPI. The |
301 |
+ |
interface provides a single method "function GetIMasterIntf: IMaster". This provides |
302 |
+ |
type safe access to the Firebird IMaster interface and avoids the need to turn |
303 |
+ |
off object checks when coercing "function GetIMaster: TObject" to IMaster. |
304 |
+ |
|
305 |
+ |
6. New IFirebirdAPI Calls: |
306 |
+ |
function HasLocalTZDB: boolean; |
307 |
+ |
function HasTimeZoneSupport: boolean; |
308 |
+ |
function HasExtendedTZSupport: boolean; |
309 |
+ |
procedure SQLDecFloatEncode(aValue: tBCD; SQLType: cardinal; bufptr: PByte); |
310 |
+ |
function SQLDecFloatDecode(SQLType: cardinal; scale: integer; bufptr: PByte): tBCD; |
311 |
+ |
|
312 |
+ |
7. New IAttachment Calls: |
313 |
+ |
function HasDecFloatSupport: boolean; |
314 |
+ |
function GetTimeZoneServices: ITimeZoneServices; |
315 |
+ |
function HasTimeZoneSupport: boolean; |
316 |
+ |
|
317 |
+ |
8. New Interface ITimeZoneServices. |
318 |
+ |
|
319 |
+ |
9. New ISQLData API Calls: |
320 |
+ |
procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload; |
321 |
+ |
procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload; |
322 |
+ |
procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload; |
323 |
+ |
procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload; |
324 |
+ |
function GetAsUTCDateTime: TDateTime; |
325 |
+ |
function GetAsBCD: tBCD; |
326 |
+ |
|
327 |
+ |
10. New ISQLParam API Calls |
328 |
+ |
procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload; |
329 |
+ |
procedure GetAsDateTime(var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload; |
330 |
+ |
procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload; |
331 |
+ |
procedure GetAsTime(var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload; |
332 |
+ |
function GetAsUTCDateTime: TDateTime; |
333 |
+ |
function GetAsBCD: tBCD; |
334 |
+ |
function GetStatement: IStatement; |
335 |
+ |
function GetTransaction: ITransaction; |
336 |
+ |
procedure SetAsTime(aValue: TDateTime; OnDate: TDateTime; aTimeZoneID: TFBTimeZoneID); overload; |
337 |
+ |
procedure SetAsTime(aValue: TDateTime; OnDate: TDateTime; aTimeZone: AnsiString); overload; |
338 |
+ |
procedure SetAsDateTime(aValue: TDateTime; aTimeZoneID: TFBTimeZoneID); overload; |
339 |
+ |
procedure SetAsDateTime(aValue: TDateTime; aTimeZone: AnsiString); overload; |
340 |
+ |
procedure SetAsUTCDateTime(aUTCTime: TDateTime); |
341 |
+ |
procedure SetAsBcd(aValue: tBCD); |
342 |
+ |
|
343 |
+ |
11. New IArray API Calls |
344 |
+ |
procedure GetAsDateTime(index: array of integer; var aDateTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID); overload; |
345 |
+ |
procedure GetAsDateTime(index: array of integer; var aDateTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString); overload; |
346 |
+ |
procedure GetAsTime(index: array of integer; var aTime: TDateTime; var dstOffset: smallint; var aTimezoneID: TFBTimeZoneID; OnDate: TDateTime); overload; |
347 |
+ |
procedure GetAsTime(index: array of integer; var aTime: TDateTime; var dstOffset: smallint; var aTimezone: AnsiString; OnDate: TDateTime); overload; |
348 |
+ |
function GetAsUTCDateTime(index: array of integer): TDateTime; |
349 |
+ |
procedure SetAsDateTime(index: array of integer; aValue: TDateTime; aTimeZoneID: TFBTimeZoneID); overload; |
350 |
+ |
procedure SetAsDateTime(index: array of integer; aValue: TDateTime; aTimeZone: AnsiString); overload; |
351 |
+ |
procedure SetAsTime(index: array of integer; aValue: TDateTime; OnDate: TDateTime; aTimeZoneID: TFBTimeZoneID); overload; |
352 |
+ |
procedure SetAsTime(index: array of integer; aValue: TDateTime; OnDate: TDateTime; aTimeZone: AnsiString); overload; |
353 |
+ |
|
354 |
+ |
12. Utility functions in IBUtils |
355 |
+ |
function ParseDateTimeTZString(aDateTimeStr: Ansistring; var aDateTime: TDateTime; |
356 |
+ |
var aTimezone: AnsiString; aFormatSettings: TFormatSettings; TimeOnly: boolean=false): boolean; |
357 |
+ |
procedure FBDecodeTime(aTime: TDateTime; var Hour, Minute, Second: word; var DeciMillisecond: cardinal); |
358 |
+ |
function FBEncodeTime(Hour, Minute, Second, DeciMillisecond: cardinal): TDateTime; |
359 |
+ |
function FBFormatDateTime(fmt: AnsiString; aDateTime: TDateTime): AnsiString; |
360 |
+ |
function FormatTimeZoneOffset(EffectiveTimeOffsetMins: integer): AnsiString; |
361 |
+ |
function DecodeTimeZoneOffset(TZOffset: AnsiString; var dstOffset: integer): boolean; |
362 |
+ |
|
363 |
+ |
13. IDPB, ITPB and ISPB: new interface method |
364 |
+ |
function AddByTypeName(ParamTypeName: AnsiString): IDPBItem/ITPBItem/ISPBItem; |
365 |
+ |
This is used to add a parameter block item by the string equivalent of its |
366 |
+ |
symbolic type name. e.g. DPB.AddByTypeName('isc_dpb_user_name').AsString := '...' |
367 |
+ |
|
368 |
+ |
14. IDPBItem/ITPBItem/ISPBItem: new interface method: |
369 |
+ |
function getParamTypeName: AnsiString; |
370 |
+ |
|
371 |
+ |
15. fb_shutdown now called before unloading Firebird library. This can avoid a |
372 |
+ |
SIGEVENT error when a programme using the embeded server is unloaded. |
373 |
+ |
|
374 |
+ |
FBINTF Change Log version (1.1-6 Build 12237) Tue, 21 Jul 2020 08:54:21 +0100 |
375 |
+ |
|
376 |
+ |
1. GetImplementationVersion now correctly returns '3.0' for Firebird 3 API |
377 |
+ |
with a Firebrid 3 client library. |
378 |
+ |
|
379 |
+ |
2. Linux Only: FIREBIRD environment variable is now checked when loading the client library. |
380 |
+ |
If a client library path is not explicitly provided and the FIREBIRD environment |
381 |
+ |
variable is set then the directory given by this variable and any 'lib' subdirectory |
382 |
+ |
are searched for the Firebird client library. Only if none is found, is the default |
383 |
+ |
client library used. |
384 |
+ |
|
385 |
+ |
3. IUtil.FormatStatus now used to format error messages when using new API |
386 |
+ |
|
387 |
+ |
4. Fixed Array SDL: array_desc_scale now correctly encoded as a signed integer. |
388 |
+ |
|
389 |
+ |
5. SQL_TEXT handling changed. When the value of an SQL_TEXT (i.e. fixed width string) column is |
390 |
+ |
returned using GetAsString and the string codepage is UTF8, the string is truncated so |
391 |
+ |
that the byte length corresponds to the number of characters specified for the column. |
392 |
+ |
SQL_TEXT strings are no longer automatically trimmed to remove all trailing white space. This is |
393 |
+ |
correct behaviour but may affect some implementations that relied upon automatic |
394 |
+ |
trimming of trailing white space. |
395 |
+ |
|
396 |
+ |
6. New IFirebirdAPI Calls: |
397 |
+ |
function GetClientMajor: integer; |
398 |
+ |
function GetClientMinor: integer; |
399 |
+ |
|
400 |
+ |
7. IColumnMetaData and IArrayMetaData: new method |
401 |
+ |
function GetCharSetWidth: integer; |
402 |
+ |
|
403 |
+ |
FBINTF Change Log version (1.1-5 Build 12022) Fri, 17 Apr 2020 10:35:55 +0100 |
404 |
+ |
|
405 |
+ |
1. ISQLParams.GetHasCaseSensitiveParams added. Returns true if param names are |
406 |
+ |
case sensitive |
407 |
+ |
|
408 |
+ |
2. Single line SQL comments starting with '--' are now recognised by SQL Parser. |
409 |
+ |
|
410 |
+ |
3. New API Calls: |
411 |
+ |
IColumnMetaData.GetStatement |
412 |
+ |
IColumnMetaData.GetTransaction |
413 |
+ |
ISQLData.GetStrDataLength |
414 |
+ |
IResults.GetStatement |
415 |
+ |
IAttachment.OpenBlob (using Blob metadata) |
416 |
+ |
IAttachment.OpenArray (using array metadata) |
417 |
+ |
|
418 |
+ |
4. FBMessages: removal of unused messages |
419 |
+ |
|
420 |
+ |
5. TFBArray.Create (2nd case): ensure that FFirebirdClientAPI is correctly set. |
421 |
+ |
|
422 |
+ |
6. TIBSQLStatementType: SQLSavePoint added to end of enumeration. |
423 |
+ |
|
424 |
+ |
FBINTF Change Log version (1.1-4 Build 11515) Fri, 28 Dec 2018 10:04:19 +0000 |
425 |
+ |
|
426 |
+ |
1. Fix a problem with the SQL parameter parser that failed to recognise parameters |
427 |
+ |
where the second character of the parameter name is a numeric. |
428 |
+ |
|
429 |
+ |
2. New method for IAttachment: procedure getFBVersion(version: TStrings); |
430 |
+ |
This returns the isc_version connection information as one or more lines. |
431 |
+ |
This is the same information as returned by isql with the -z option. |
432 |
+ |
|
433 |
+ |
3. If -dFIREBIRD3APIONLY is used as a compiler option then the legacy Firebird API |
434 |
+ |
is no longer compiled in. Likewise, if -dLEGACYFIREBIRDAPIONLY is used as a |
435 |
+ |
compiler option then the Firebird 3 API is no longer compiled in. |
436 |
+ |
|
437 |
+ |
4. IColumnMetaData: new method. |
438 |
+ |
|
439 |
+ |
TIBDateTimeFormats = (dfTimestamp, {SQL TIMESTAMP} |
440 |
+ |
dfDateTime, {SQL DATETIME} |
441 |
+ |
dfTime); |
442 |
+ |
|
443 |
+ |
function GetDateTimeStrLength(DateTimeFormat: TIBDateTimeFormats): integer; |
444 |
+ |
|
445 |
+ |
This returns the max. number of characters returned by the "AsString" method |
446 |
+ |
when the SQL type of the column is respectively TIMESTAMP, DATETIME or TIME. |
447 |
+ |
|
448 |
+ |
5. Additional argument for IAttachment.PrepareWithNamedParameters - |
449 |
+ |
CaseSensitiveParams: boolean = false |
450 |
+ |
|
451 |
+ |
If this argument is set to true then SQL parameter names are assumed to be case |
452 |
+ |
sensitive and must be referenced (using ISQLParams.ByName) using the case |
453 |
+ |
sensitive name. |
454 |
+ |
|
455 |
+ |
6. Bug fix: when setting a query parameter, it is now possible, when the parameter |
456 |
+ |
is of type VarChar or Char to set the parameter to a numeric value (e.g. using |
457 |
+ |
.AsCurrency) and then subsequently to update the value to a non-numeric string |
458 |
+ |
using .AsString. |
459 |
+ |
|
460 |
+ |
|
461 |
+ |
|
462 |
|
FBINTF Change Log version (1.1-3) Wed, 05 Dec 2018 14:28:10 +0000 |
463 |
|
|
464 |
|
1. DARWIN only syntax error: fix missing semi-colon in TFBClientAPI.LoadIBLibrary |