142 |
|
ibxeTokenQueueUnderflow, |
143 |
|
ibxErrorParsing, |
144 |
|
ibxeDLInfoError, |
145 |
< |
ibxeDifferentAPIs |
145 |
> |
ibxeDifferentAPIs, |
146 |
> |
ibxeInvalidDateTimeStr, |
147 |
> |
ibxeBadTimeZoneID, |
148 |
> |
ibxeBadBCDConversion, |
149 |
> |
ibxeBadTimeZoneName, |
150 |
> |
ibxeTimeZoneUnknown, |
151 |
> |
ibxeBadTimeSpecification, |
152 |
> |
ibxeBCDTooBig, |
153 |
> |
ibxeInvalidTimeZoneID, |
154 |
> |
ibxeBadTimestampOrNoTimeZoneDBEntry, |
155 |
> |
ibxeBCDOverflow, |
156 |
> |
ibxeNoTimezoneSupport, |
157 |
> |
ibxeDecFloatNotSupported, |
158 |
> |
ibxeInt128NotSupported, |
159 |
> |
ibxeUnknownParamTypeName, |
160 |
> |
ibxInvalidQueryAction, |
161 |
> |
ibxeSQLTypeUnchangeable, |
162 |
> |
ibxeCannotIncreaseMetadatasize, |
163 |
> |
ibxeBatchModeNotSupported, |
164 |
> |
ibxeNotInBatchMode, |
165 |
> |
ibxeInBatchMode, |
166 |
> |
ibxeInvalidBatchQuery, |
167 |
> |
ibxeBatchRowBufferOverflow, |
168 |
> |
ibxeBatchBufferSizeTooBig |
169 |
|
); |
170 |
|
|
171 |
|
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
182 |
|
STrue = 'true'; |
183 |
|
SFalse = 'false'; |
184 |
|
SArray = '(array)'; |
185 |
+ |
SBatchCompletionError = 'Error Processing update/insert batch on row number %d - '; |
186 |
|
|
187 |
|
implementation |
188 |
|
|
204 |
|
SSQLClosed = 'IBSQL Closed'; |
205 |
|
SUnknownSQLDataType = 'Unknown SQL Data type (%d)'; |
206 |
|
SInvalidColumnIndex = 'Invalid column index (index exceeds permitted range)'; |
207 |
< |
SInvalidDataConversion = 'Invalid data conversion'; |
207 |
> |
SInvalidDataConversion = 'Invalid data conversion from %s'; |
208 |
|
SBlobCannotBeRead = 'Blob stream cannot be read'; |
209 |
|
SBlobCannotBeWritten = 'Blob stream cannot be written'; |
210 |
|
SBlobNotOpen = 'The Blob is not open'; |
259 |
|
SErrorParsing = 'Error parsing SQL Statement at clause starting with %s'; |
260 |
|
SDLInfoError = 'dlinfo returned error - %s'; |
261 |
|
SDifferentAPIs = 'All transaction attachments must use the same Firebird Library'; |
262 |
+ |
SInvalidDateTimeStr = '%s is not a valid Date/Time string'; |
263 |
+ |
SBadTimeZoneID = 'Invalid Time Zone ID (%d,%d)'; |
264 |
+ |
SBadBCDConversion = 'Conversion to BCD failed'; |
265 |
+ |
SBadTimeZoneName = 'Invalid Time Zone Name "%s"'; |
266 |
+ |
STimeZoneUnknown = 'Time Zone Unknown'; |
267 |
+ |
SBadTimeSpecification = '%d:%d:%d.%d is not a valid time specification'; |
268 |
+ |
SBCDTooBig = 'BCD Precision (%d) is too large for Firebird Data Type max precision (%d)'; |
269 |
+ |
SInvalidTimeZoneID = 'Invalid Time Zone ID (%d)'; |
270 |
+ |
SBadTimestampOrNoTimeZoneDBEntry = 'Bad Timestamp or missing time zone DB entry (%s) TZ ID = %d'; |
271 |
+ |
SBCDOverflow = 'BCD Precision too large for Firebird data type,[%s]'; |
272 |
+ |
SNoTimezoneSupport = 'TIME/TIMESTAMP WITH TIME ZONE data type not supported'; |
273 |
+ |
SDecFloatNotSupported = 'DecFloat Data Type not supported'; |
274 |
+ |
SInt128NotSupported = 'INT128 Data Type not supported'; |
275 |
+ |
SUnknownParamTypeName = '%s:Unknown Param Type Name "%s"'; |
276 |
+ |
SInvalidQueryAction = 'Query Action only valid for an Update or Insert Query'; |
277 |
+ |
SSQLTypeUnchangeable = 'Cannot change SQL Type from %s to %s'; |
278 |
+ |
SCannotIncreaseMetadatasize = 'Cannot increase Metadata size from %d to %d'; |
279 |
+ |
SBatchModeNotSupported = 'Batch Mode is not available. Firebird 4 or later client and server is required'; |
280 |
+ |
SNotInBatchMode = 'Not in Batch Mode - have you called AddToBatch?'; |
281 |
+ |
SInBatchMode = 'Invalid Operation: a Batch is pending'; |
282 |
+ |
SInvalidBatchQuery = 'This query type (%s) cannot be batched'; |
283 |
+ |
SBatchRowBufferOverflow = 'Adding Row No. %d - batch buffer size limit (%d bytes) exceeded'; |
284 |
+ |
SBatchBufferSizeTooBig = 'Requested Batch Buffer Size (%d bytes) exceeds 256MB limit'; |
285 |
|
|
286 |
|
const |
287 |
|
IBErrorMessages: array[TIBClientError] of string = ( |
351 |
|
STokenQueueUnderflow, |
352 |
|
SErrorParsing, |
353 |
|
SDLInfoError, |
354 |
< |
SDifferentAPIs |
354 |
> |
SDifferentAPIs, |
355 |
> |
SInvalidDateTimeStr, |
356 |
> |
SBadTimeZoneID, |
357 |
> |
SBadBCDConversion, |
358 |
> |
SBadTimeZoneName, |
359 |
> |
STimeZoneUnknown, |
360 |
> |
SBadTimeSpecification, |
361 |
> |
SBCDTooBig, |
362 |
> |
SInvalidTimeZoneID, |
363 |
> |
SBadTimestampOrNoTimeZoneDBEntry, |
364 |
> |
SBCDOverflow, |
365 |
> |
SNoTimezoneSupport, |
366 |
> |
SDecFloatNotSupported, |
367 |
> |
SInt128NotSupported, |
368 |
> |
SUnknownParamTypeName, |
369 |
> |
SInvalidQueryAction, |
370 |
> |
SSQLTypeUnchangeable, |
371 |
> |
SCannotIncreaseMetadatasize, |
372 |
> |
SBatchModeNotSupported, |
373 |
> |
SNotInBatchMode, |
374 |
> |
SInBatchMode, |
375 |
> |
SInvalidBatchQuery, |
376 |
> |
SBatchRowBufferOverflow, |
377 |
> |
SBatchBufferSizeTooBig |
378 |
|
); |
379 |
|
|
380 |
|
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
388 |
|
Format(GetErrorMessage(ErrMess), Args)); |
389 |
|
end; |
390 |
|
|
391 |
+ |
|
392 |
|
end. |
393 |
|
|