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 |
|
|
240 |
|
ibxeInvalidParamCount, |
241 |
|
ibxeInvalidVariantType, |
242 |
|
ibxeServiceRunning, |
243 |
< |
ibxeUniqueRelationReqd |
243 |
> |
ibxeUniqueRelationReqd, |
244 |
> |
ibxeInterfaceNotSupported, |
245 |
> |
ibxeCharacterSetExists, |
246 |
> |
ibxeUnknownUserCharSet, |
247 |
> |
ibxeUninitializedInputParameter, |
248 |
> |
ibxeNegativeGenerator, |
249 |
> |
ibxeServiceUnavailable, |
250 |
> |
ibxeBadConnectString, |
251 |
> |
ibxeServiceNotStarted, |
252 |
> |
ibxeNotRequiredDataSetSource, |
253 |
> |
ibxeNoLimboTransactionInsert, |
254 |
> |
ibxeDatabaseNotConnected, |
255 |
> |
ibxMultiThreadRequired |
256 |
|
); |
257 |
|
|
258 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
258 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
259 |
|
|
260 |
|
resourcestring |
261 |
|
{ generic strings used in code } |
388 |
|
SServerNameMissing = 'Server Name Missing'; |
389 |
|
SQueryParamsError = 'Query Parameters missing or incorrect'; |
390 |
|
SStartParamsError = 'start Parameters missing or incorrect'; |
391 |
< |
SOutputParsingError = 'Unexpected Output buffer value (%d)'; |
391 |
> |
SOutputParsingError = 'Unexpected Output buffer value (%d) - %s'; |
392 |
|
SUseSpecificProcedures = 'Generic ServiceStart not applicable: Use Specific Procedures to set configuration params'; |
393 |
|
SSQLMonitorAlreadyPresent = 'SQL Monitor Instance is already present'; |
394 |
|
SDelphiException = 'DelphiException %s'; |
448 |
|
SInvalidVariantType = 'Invalid variant type'; |
449 |
|
SServiceRunning = 'Cannot start a new service while an existing service is running'; |
450 |
|
SUniqueRelationReqd = 'All Output Fields must derived from the same table'; |
451 |
+ |
SInterfaceNotSupported = 'Interface not supported; Guid %s not found'; |
452 |
+ |
SCharacterSetExists = 'Character set "%s" is already defined'; |
453 |
+ |
SUnknownUserCharSet = 'Unknown user character set "%s"'; |
454 |
+ |
SUninitializedInputParameter = 'SQL Param No. %d (%s) is uninitialised'; |
455 |
+ |
SNegativeGenerator = 'A Generator Increment cannot be negative'; |
456 |
+ |
SServiceUnavailable = 'Request Service is not available'; |
457 |
+ |
SBadConnectString = 'Parse Error in Connect String'; |
458 |
+ |
SServiceNotStarted = 'Cannot Query running service until the service has been started'; |
459 |
+ |
SNotRequiredDataSetSource = 'Object of class %s is not a valid dataset source'; |
460 |
+ |
SNoLimboTransactionInsert = 'You cannot add to a Limbo Transaction list'; |
461 |
+ |
SDatabaseNotConnected = 'Cannot connect using an unattached database'; |
462 |
+ |
SMultiThreadRequired = 'Multi-threading required for %s but not enabled. Please recompile with multi-threading support enabled. '+ |
463 |
+ |
'Hint: you probably need to add -dUseCThreads to the Custom Options.'; |
464 |
|
|
465 |
|
const |
466 |
|
IBErrorMessages: array[TIBClientError] of string = ( |
623 |
|
SInvalidParamCount, |
624 |
|
SInvalidVariantType, |
625 |
|
SServiceRunning, |
626 |
< |
SUniqueRelationReqd |
626 |
> |
SUniqueRelationReqd, |
627 |
> |
SInterfaceNotSupported, |
628 |
> |
SCharacterSetExists, |
629 |
> |
SUnknownUserCharSet, |
630 |
> |
SUninitializedInputParameter, |
631 |
> |
SNegativeGenerator, |
632 |
> |
SServiceUnavailable, |
633 |
> |
SBadConnectString, |
634 |
> |
SServiceNotStarted, |
635 |
> |
SNotRequiredDataSetSource, |
636 |
> |
SNoLimboTransactionInsert, |
637 |
> |
SDatabaseNotConnected, |
638 |
> |
SMultiThreadRequired |
639 |
|
); |
640 |
|
|
641 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
641 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
642 |
|
begin |
643 |
|
Result := IBErrorMessages[ErrMess]; |
644 |
|
end; |