60 |
|
{ } |
61 |
|
{************************************************************************} |
62 |
|
unit FBMessages; |
63 |
+ |
{$IFDEF MSWINDOWS} |
64 |
+ |
{$DEFINE WINDOWS} |
65 |
+ |
{$ENDIF} |
66 |
|
|
67 |
|
{$IFDEF FPC} |
68 |
< |
{$mode objfpc}{$H+} |
68 |
> |
{$mode delphi} |
69 |
|
{$codepage UTF8} |
70 |
|
{$ENDIF} |
71 |
|
|
239 |
|
ibxeParamBufferOverflow, |
240 |
|
ibxeInvalidParamCount, |
241 |
|
ibxeInvalidVariantType, |
242 |
< |
ibxeServiceRunning |
242 |
> |
ibxeServiceRunning, |
243 |
> |
ibxeUniqueRelationReqd, |
244 |
> |
ibxeInterfaceNotSupported, |
245 |
> |
ibxeCharacterSetExists, |
246 |
> |
ibxeUnknownUserCharSet, |
247 |
> |
ibxeUninitializedInputParameter, |
248 |
> |
ibxeNegativeGenerator, |
249 |
> |
ibxeServiceUnavailable |
250 |
|
); |
251 |
|
|
252 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
252 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
253 |
|
|
254 |
|
resourcestring |
255 |
|
{ generic strings used in code } |
271 |
|
SDatabaseFilter = 'Database Files (*.fdb; *.gdb)|*.gdb; *.fdb|All files (*.*)|*.*'; |
272 |
|
STrue = 'true'; |
273 |
|
SFalse = 'false'; |
274 |
+ |
SArray = '(array)'; |
275 |
+ |
SBlob = '(blob)'; |
276 |
|
|
277 |
|
implementation |
278 |
|
|
382 |
|
SServerNameMissing = 'Server Name Missing'; |
383 |
|
SQueryParamsError = 'Query Parameters missing or incorrect'; |
384 |
|
SStartParamsError = 'start Parameters missing or incorrect'; |
385 |
< |
SOutputParsingError = 'Unexpected Output buffer value (%d)'; |
385 |
> |
SOutputParsingError = 'Unexpected Output buffer value (%d) - %s'; |
386 |
|
SUseSpecificProcedures = 'Generic ServiceStart not applicable: Use Specific Procedures to set configuration params'; |
387 |
|
SSQLMonitorAlreadyPresent = 'SQL Monitor Instance is already present'; |
388 |
|
SDelphiException = 'DelphiException %s'; |
417 |
|
SPBIndexError = 'DPB Index out of range (%d)'; |
418 |
|
SPBParamTypeError = 'Invalid Request for DPB Param Type'; |
419 |
|
SDuplicateParamName = 'Blob or array parameter name must be unique (%s)'; |
420 |
< |
SInvalidArrayDimensions = 'Invalid number of array dimensions {%d)'; |
420 |
> |
SInvalidArrayDimensions = 'Invalid number of array dimensions (%d)'; |
421 |
|
SNotAMultiDatabaseTransaction = 'This is not a multi-database transaction'; |
422 |
|
SAttachmentListIndexError = 'Attachment List index out of range (%d)'; |
423 |
|
SNotAnArray = 'Table Column must be an array'; |
441 |
|
SInvalidParamCount = 'Invalid Parameter Count. %d expected, %d found'; |
442 |
|
SInvalidVariantType = 'Invalid variant type'; |
443 |
|
SServiceRunning = 'Cannot start a new service while an existing service is running'; |
444 |
+ |
SUniqueRelationReqd = 'All Output Fields must derived from the same table'; |
445 |
+ |
SInterfaceNotSupported = 'Interface not supported; Guid %s not found'; |
446 |
+ |
SCharacterSetExists = 'Character set "%s" is already defined'; |
447 |
+ |
SUnknownUserCharSet = 'Unknown user character set "%s"'; |
448 |
+ |
SUninitializedInputParameter = 'SQL Param No. %d (%s) is uninitialised'; |
449 |
+ |
SNegativeGenerator = 'A Generator Increment cannot be negative'; |
450 |
+ |
SServiceUnavailable = 'Request Service is not available'; |
451 |
|
|
452 |
|
const |
453 |
|
IBErrorMessages: array[TIBClientError] of string = ( |
609 |
|
SParamBufferOverflow, |
610 |
|
SInvalidParamCount, |
611 |
|
SInvalidVariantType, |
612 |
< |
SServiceRunning |
612 |
> |
SServiceRunning, |
613 |
> |
SUniqueRelationReqd, |
614 |
> |
SInterfaceNotSupported, |
615 |
> |
SCharacterSetExists, |
616 |
> |
SUnknownUserCharSet, |
617 |
> |
SUninitializedInputParameter, |
618 |
> |
SNegativeGenerator, |
619 |
> |
SServiceUnavailable |
620 |
|
); |
621 |
|
|
622 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
622 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
623 |
|
begin |
624 |
|
Result := IBErrorMessages[ErrMess]; |
625 |
|
end; |