1 |
< |
FBINTF Change Log version (1.3-2 Build 12798) Mon, 20 Sep 2021 12:42:46 +0100 |
1 |
> |
FBINTF Change Log version (1.4-0 Build 13139) Wed, 09 Feb 2022 16:12:05 +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. |
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 |
> |
18. In Firebird 3 and later API: the status vector is now a thread var, as was |
103 |
> |
already the case with the legacy API. Avoids problems when calling underlying |
104 |
> |
Firebird API in multiple threads. |
105 |
> |
|
106 |
> |
|
107 |
> |
|
108 |
> |
FBINTF Change Log version (1.3-3 Build 12935) Mon, 06 Dec 2021 23:17:13 +0000 |
109 |
> |
|
110 |
> |
1. Fix compile error with fpc trunk (3.3.1 and later), due to type change to tzname in "unix" unit. |
111 |
> |
|
112 |
> |
2. Remove constraint in IAttachment.HasScollableCursors that returned false when |
113 |
> |
using remote protocol. Scrollable cursors with remote database expected to |
114 |
> |
be support for Firebird 4.0.1 onwards. Note: Firebird 4.0.0 will return |
115 |
> |
a not supported error. |
116 |
> |
|
117 |
> |
3. IStatement: new function; |
118 |
> |
TStatementFlag = (stHasCursor,stRepeatExecute,stScrollable); |
119 |
> |
TStatementFlags = set of TStatementFlag; |
120 |
> |
function GetFlags: TStatementFlags; |
121 |
> |
|
122 |
> |
4. Revised behaviour for IStatement.ExecuteQuery in order to preserve backwards |
123 |
> |
compatibility. |
124 |
> |
In Firebird 5, Update..Returning may returns multiple rows and hence the statemen |
125 |
> |
type changes from ExecProcedure to Select. So that ExecuteQuery can continue |
126 |
> |
to be used with Update...Retruning statements that return a singleton row, |
127 |
> |
instead of raising an exception when ExecuteQuery is used with a (SELECT) statement, |
128 |
> |
it will open the cursor and return the first row only. |
129 |
> |
|
130 |
> |
5. ITransaction: new functions: |
131 |
> |
function GetIsReadOnly: boolean; |
132 |
> |
function GetTransactionID: integer; |
133 |
> |
function GetTrInformation(Requests: array of byte): ITrInformation; overload; |
134 |
> |
function GetTrInformation(Request: byte): ITrInformation; overload; |
135 |
> |
|
136 |
> |
The latter two return the Transaction Information block. The first two extract |
137 |
> |
information the Transaction Information block |
138 |
> |
|
139 |
> |
6. New function TSQLTokeniser.ReadCharacters |
140 |
> |
Used internally. |
141 |
> |
|
142 |
> |
7. IStatement: GetProcessedSQL bug fix. No longer raises and error if SQL contains |
143 |
> |
parameter placeholders instead of named parameters. |
144 |
> |
|
145 |
> |
8. ITransaction (Firebird 3 and later): An exception raised when freeing an underlying |
146 |
> |
transaction handle is now ignored if Rollback/Commit is called with Force=true |
147 |
> |
|
148 |
> |
9. Tidy up of exception handling code. Under the legacy API, fb_interpret is now |
149 |
> |
used to get an IBError Message instead of isc_interprete. |
150 |
> |
|
151 |
> |
10. Internal tidyup. Native code now used for decoding integers and the events |
152 |
> |
buffer. Avoids dependencies on fbclient functions isc_portable_integer, |
153 |
> |
isc_event_block and isc_event_counts. |
154 |
> |
|
155 |
> |
11. New IAttachment function |
156 |
> |
function GetAttachmentID: integer; |
157 |
> |
|
158 |
> |
12. Internal changes to TFBClientAPI, TFBAttachment and TFBTransaction and TFB30 |
159 |
> |
subclasses to enable UDR support. |
160 |
> |
|
161 |
> |
FBINTF Change Log version (1.3-2 Build 12889) Sun, 24 Oct 2021 13:49:28 +0100 |
162 |
|
|
163 |
|
1. TFBClientAPI.GetProcAddr. Add check for nil reference. |
164 |
|
|
170 |
|
user to disable them on a per statement basis. Note this can risk out-of-date |
171 |
|
statement BLR. See User Guide. |
172 |
|
|
173 |
+ |
3. IBUtils: TSQLwithNamedParamsTokeniser now recognises a CASE...END block within a |
174 |
+ |
stored procedure and hence avoids replacing named parameters within a containing |
175 |
+ |
BEGIN..END block. |
176 |
+ |
|
177 |
+ |
4. ISQLParam: using a string value to set an integer field with a scale factor of |
178 |
+ |
zero is now treated as a special case to avoid the risk of floating point |
179 |
+ |
rounding errors affecting pure integers. |
180 |
+ |
|
181 |
+ |
5. ISQLParam: Review and tidy-up of SetAsString for numeric types. |
182 |
+ |
|
183 |
+ |
6. ISQLParam is now subclassed from IParamMetaData, which provides access to the mutable |
184 |
+ |
SQL Parameter metadata (methods moved from ISQLParam). |
185 |
+ |
|
186 |
+ |
7. ISQLParam: new method |
187 |
+ |
function getColMetadata: IParamMetaData; |
188 |
+ |
This instance of IParamMetaData returns the original column metadata which is unmutable. |
189 |
+ |
Note: ISQLParam metadata can change after a parameter value has been set e.g when |
190 |
+ |
setting a VARCHAR column to an integer value. |
191 |
+ |
|
192 |
+ |
8. IStatement: can now set cursor name when opening a cursor. New overloaded method: |
193 |
+ |
procedure Prepare(CursorName: AnsiString; aTransaction: ITransaction=nil); overload; |
194 |
+ |
also IAttachment: |
195 |
+ |
function Prepare(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; CursorName: AnsiString=''): IStatement; overload; |
196 |
+ |
function Prepare(transaction: ITransaction; sql: AnsiString; CursorName: AnsiString=''): IStatement; overload; |
197 |
+ |
function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString; |
198 |
+ |
aSQLDialect: integer; GenerateParamNames: boolean=false; |
199 |
+ |
CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload; |
200 |
+ |
function PrepareWithNamedParameters(transaction: ITransaction; sql: AnsiString; |
201 |
+ |
GenerateParamNames: boolean=false; |
202 |
+ |
CaseSensitiveParams: boolean = false; CursorName: AnsiString=''): IStatement; overload; |
203 |
+ |
|
204 |
+ |
9. Support for scrollable cursors added. New/updated methods: |
205 |
+ |
IAttachment: |
206 |
+ |
function HasScollableCursors: boolean; |
207 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; |
208 |
+ |
Scrollable: boolean=false): IResultSet; overload; |
209 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
210 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean; |
211 |
+ |
params: array of const): IResultSet; overload; |
212 |
+ |
function OpenCursor(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false; |
213 |
+ |
params: array of const): IResultSet; overload; |
214 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; Scrollable: boolean; |
215 |
+ |
params: array of const): IResultSet; overload; |
216 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; aSQLDialect: integer; |
217 |
+ |
Scrollable: boolean=false): IResultSet; overload; |
218 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
219 |
+ |
function OpenCursorAtStart(transaction: ITransaction; sql: AnsiString; Scrollable: boolean; |
220 |
+ |
params: array of const): IResultSet; overload; |
221 |
+ |
function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean=false): IResultSet; overload; |
222 |
+ |
function OpenCursorAtStart(sql: AnsiString; Scrollable: boolean; |
223 |
+ |
params: array of const): IResultSet; overload; |
224 |
+ |
IStatement: |
225 |
+ |
function OpenCursor(Scrollable: boolean; CursorName: AnsiString =''; aTransaction: ITransaction=nil): IResultSet; overload; |
226 |
+ |
IResultSet: |
227 |
+ |
function FetchPrior: boolean; {fetch previous record} |
228 |
+ |
function FetchFirst:boolean; {fetch first record} |
229 |
+ |
function FetchLast: boolean; {fetch last record} |
230 |
+ |
function FetchAbsolute(position: Integer): boolean; {fetch record by its absolute position in result set} |
231 |
+ |
function FetchRelative(offset: Integer): boolean; {fetch record by position relative to current} |
232 |
+ |
function IsBof: boolean; |
233 |
+ |
|
234 |
+ |
10. IArray: tidyup of SetAsString method to ensure correct handling of fixed point numbers. |
235 |
+ |
|
236 |
+ |
11. IBUtils: TSQLTokeniser. CRLF now combined by low level parser into sqltEOL token. This |
237 |
+ |
may be noticeable when a line separator occurs inside quoted text. The quoted text |
238 |
+ |
output by the tokeniser will now use the platform specific lineEnding regardless |
239 |
+ |
of whether the input uses the CRLF or LF as a line separator. |
240 |
+ |
|
241 |
+ |
12. IStatement, IResultsSet: Support for scrollable cursors added (note: local databases only) |
242 |
+ |
|
243 |
+ |
|
244 |
|
FBINTF Change Log version (1.3-1 Build 12776) Mon, 23 Aug 2021 11:09:33 +0100 |
245 |
|
|
246 |
|
1. Integer decodes in information blocks (e.g. IDBInfoItem) widened from 32 bit to 64-bit integers. |