ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/changelog
Revision: 265
Committed: Sat Dec 8 11:22:27 2018 UTC (3 days, 14 hours ago) by tony
File size: 10676 byte(s)
Log Message:
Fixes merged
Line File contents
1 FBINTF Change Log version (1.1-4) Sat, 08 Dec 2018 11:11:20 +0000
2
3 1. Fix a problem with the SQL parameter parser that failed to recognise parameters
4 where the second character of the parameter name is a numeric.
5
6
7 FBINTF Change Log version (1.1-3) Wed, 05 Dec 2018 14:28:10 +0000
8
9 1. DARWIN only syntax error: fix missing semi-colon in TFBClientAPI.LoadIBLibrary
10
11 2. Restrict IsMultiThread check to Unix only for compatibility with
12 https://bugs.freepascal.org/view.php?id=30535
13
14 3. New SQL Tokeniser added to IBUtils. This is used to pre-process SQL with
15 named parameters and is intended to avoid problems with (e.g.) Execute Block
16 and processing internal parameters as statement parameters.
17
18 4. New interface IFirebirdLibrary provides access to the underlying firebird DLL
19 or shared object. Available via a new member (GetFBLibrary) of IFirebirdAPI.
20
21 5. New function added to IB.pas
22
23 function LoadFBLibrary(aLibPathName: string): IFirebirdLibrary
24
25 This allows a Firebird Library to be loaded from an explicit path. use the
26 IFirebirdLibrary.GetFirebirdAPI member function to get the Firebird API using
27 the library. It is possible to load Firebird libraries from different locations
28 simultaneously, each with a distinct IFirebirdAPI.
29
30 FBINTF Change Log version (1.1-2) Mon, 16 Apr 2018 09:30:32 +0100
31
32 1. Firebird.pas: {$OBJECTCHECKS OFF} added to file to avoid runtime error when
33 program compiled with -CR command line switch.
34
35 2. IServiceManager additions (informational):
36 function getProtocol: TProtocol;
37 function getPortNo: AnsiString;
38
39 3. IServiceManager improved error handling. Interfaces changed:
40 function Start(Request: ISRB; RaiseExceptionOnError: boolean=true): boolean;
41 function Query(SQPB: ISQPB; Request: ISRB; RaiseExceptionOnError: boolean=true) :IServiceQueryResults; overload;
42 function Query(Request: ISRB; RaiseExceptionOnError: boolean=true) :IServiceQueryResults; overload;
43
44 4. IAttachment addition (informational)
45 function GetSecurityDatabase: AnsiString;
46
47 5. IStatement: performance counters now updated after each Fetch. GetPerfStatistics
48 thus now returns accumulated stats for a select statement from opening a cursor
49 up to the last fetch.
50
51 6. DARWIN: uloadlibrary.inc bug fix. Many thanks to Luigi Naimi for correcting
52 the problem.
53
54 7. Type change: "TPerfCounters = array[TPerfStats] of Int64". Note "Int64"
55 replaces deprecated "comp" type.
56
57 10. Testsuite Test10 updated to include thread synchronisation for event reporting.
58
59 11. URL Connection Strings: inet4 and inet6 now recognised.
60
61 12. IBUtils: Parse and Make Connect String now recognise URL style loopback syntax.
62
63 13. IAttachment.CharSetName2CharSetID is now performed case insensitive.
64
65
66 FBINTF Change Log version (1.1-1) Tue, 27 Feb 2018 16:51:16 +0000
67
68 1. IBUtils.QuoteIdentifierIfNeeded: Add check for space character.
69
70 2. IAttachment: add two new methods
71 function HasDefaultCharSet: boolean;
72 function GetDefaultCharSetID: integer;
73
74 These return, respectively, true if a connection default character set was
75 specified and the character set id of the connection default character set.
76 The DefaultCharSetID is cached when the connection is opened and hence does not
77 require a database lookup.
78
79 3. Avoid exception when a text blob is a stored procedure parameter.
80
81 4. Update test suite to include a test for a stored proc returning a text blob.
82
83 5. IAttachment: add
84 function GetRemoteProtocol: AnsiString;
85 function GetODSMajorVersion: integer;
86 function GetODSMinorVersion: integer;
87 function GetAuthenticationMethod: AnsiString;
88
89 These results are cached when the connection is opened and hence do not
90 require a database lookup.
91
92 6. IAttachment: add "function GetConnectString: AnsiString;" This returns the
93 connect string used to create/connect to the database.
94
95 7. IAttachment: Create Database using SQL statement. The username and password
96 are now extracted and used to populate a DPB made available via IAttachment.getDPB.
97 It is now possible to use IAttachment disconnect/connect to reconnect to
98 a database for which the initial connection was established by a create
99 database sql statement. Available in FPC only.
100
101 8. Update Test 1 to test 5, 6 and 7 above.
102
103 9. IBUtils code tidy up.
104
105 10. Parameter Block interfaces "find" method. As documented, this should have
106 returned a nil interface when the item could not be found. Instead, an empty
107 interface item was returned. "Find" now works as documented and will return
108 a nil interface if the item cannot be found.
109
110 11. DBInformation: support added for isc_info_active_tran_count and isc_info_creation_date.
111
112 12. DBInformation: New interfaces: IDIRB and IDIRBItem added to support DB Information
113 requests with additional parameters. This is to enable support for fb_info_page_contents
114 (return of page contents). Response to fb_info_page_contents returned as
115 a string with code page CP_NONE.
116
117 13. DBInformation: Support for fb_info_pages_used and fb_info_pages_free added, plus
118 test suite updated.
119
120 14. DBInformation: Support for fb_info_crypt_key (Firebird 3.0.3 onwards) added as
121 a string type, and fb_info_conn_flags (Firebird 3.0.3 onwards) added as an integer type.
122
123 15. Service Manager: List of protocols supported expanded to include inet, wnet and xnet.
124 An overloaded version of IIFirebirdAPI.GetServiceManager also allows a non
125 default connection port to be specified.
126
127 FBINTF Change Log version (1.1-0) Sun, 07 Jan 2018 15:20:02 +0000
128
129 1. Fix issues with setting SQL Param values using SetAsString with Numeric types.
130 Scale is no longer ignored.
131
132 2. Fix issues with setting SQL Param values using SetAsString with Date values
133 not in locale format but which are recognised by Firebird. Date values that
134 cannot be converted to a string using Pascal library are now passed through
135 to Firebird as Text Strings.
136
137 3. Lookup character set name by codepage amended to ensure that CP_UTF8 returns
138 UTF8 and not UNICODE_FSS.
139
140 4. Charset ID problem. When using Firebird 3, with no default database character set
141 and a column has a non-default collation specified, an incorrect character set
142 id was being reported that could result in a 'division by zero' error when
143 used by IBX. This has now been fixed.
144
145 5. Move GetCharsetName, CharSetID2CodePage, CodePage2CharSetID, CharSetName2CharSetID,
146 CharSetWidth from IFirebirdAPI to IAttachment. This is a better data model as
147 the character sets supported can be updated on a per database basis. That is
148 it is possible to add a (Firebird) user defined character set to a database.
149
150 6. Add RegisterCharSet to IAttachment. This is used to register a user defined character
151 set supported by Firebird with the API.
152
153 7. Add missing isc_info_db_read_only to list of decoded Database Information items
154 in FBOutputBlock.pas and update test suite to include this item.
155
156 8. FB30Client: avoid always using "StartMultiple" when only a single database attachment.
157
158 9. Loading Windows fbclient.dll: when using the FIREBIRD variable to locate the client
159 library or finding it by disk location, the PATH environment variable is now also set to
160 include the FIREBIRD directory. This is to ensure that the correct dlls in the
161 firebird client library dependencies are loaded.
162
163 10. Testsuite: Ensure consistent UTF-8 output on Windows console.
164
165 11. Testsuite: Update Windows script to include FPC 3.0.4 in search path.
166
167 12. FB30Statement: Protect call to "Move" and avoid calling with a nil pointer
168
169 13. FB30Statement: A check has been added to ensure that all SQL Parameters
170 have been given a value (including NULL). Previously, failing to set the
171 value of an SQL Parameter could give rise to unpredictable results or
172 an SQLDA error.
173
174 14. FB30Statement/FB25Statement: Set SQLParam "modified" when string value set.
175
176 15. FBAttachment: Avoid string reference count error when processing an Ansistring
177 parameter in an array of const passed to IAttachment.OpenCursor, etc.
178
179 16. FBAttachment: Allow for WideString and UnicodeString parameters in an array
180 of const passed to IAttachment.OpenCursor, etc.
181
182
183 FBINTF Change Log version (1.0-2) Sat, 04 Mar 2017 14:43:56 +0000
184
185 1. Change syntax to Mode Delphi
186
187 2. Change all uses of string type to explicit AnsiString in order to ensure
188 compatibility between Delphi and FPC.
189
190 3. Various syntax changes to ensure Delphi and FPC compilation including GUIDs
191 defined for each interface.
192
193 4. Generics syntax variations for Delphi added
194
195 5. PChar replaced with PByte expect where an actual string is being referenced,
196 where PAnsiChar is used instead.
197
198 6. Review of type definitions in IBExternals to ensure Delphi compatibility
199
200 7. Testsuite updated for Delphi
201
202 FBINTF Change Log version (1.0-1) Fri, 24 Feb 2017 12:17:57 +0000
203
204 1. Limit maximum Blob segment read/write to MaxuShort. Avoids data loss with
205 large blobs and the FB3 API.
206
207 2. Update Event Handling algorithm to avoid looping due to recreation of the
208 event block.
209
210 3. Avoid invalid XSQLDA error when the only parameter is updated to null
211
212 4. Array Handling: fix problem with text arrays with character set none. When the
213 DB connection has a default character set (e.g. UTF8), an error is raised by
214 Firebird if the space allocated is not enough to allow for transliteration, even
215 though it is not required for character set none.
216
217 5. IBUtils: List of reserved words brought up-to-date
218
219 6. Add ISQL style performance statistics collection to IStatement
220
221 7. Add IFirebirdAPI.CreateDatabase variant to allow execution of user provided
222 CREATE DATABASE statement.
223
224 8. Update SQL Statement parsing to allow for Array Dimensions. That is so that the ':' in
225 an array dimension is not mistaken for a named parameter prefix.
226
227 9. Trim function no longer applied to result of GetAsString for SQL_TEXT
228 when Character set is octets. Avoids loss of non printable characters at start of string.
229
230 10. Add function GetPerfStatistics to IStatement. This returns ISQL like performance
231 statistics for the last action. Requires use of procedure IStatement.EnableStatistics
232 to enable stats gathering.
233
234 11. API Version information added as constants to IB.pas
235
236 12. BlobMetaData character set id should now be the same as that given by IColumnMetaData.GetCharSetID
237
238 13. Firebird Character set "NONE" now interpreted as codepage CP_ACP.
239
240 FBINTF Change Log version (1.0-0) Tue, 06 Dec 2016 10:33:47 +0000
241
242 1. Initial Release
243