ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/client/FBMessages.pas
(Generate patch)

Comparing ibx/trunk/fbintf/client/FBMessages.pas (file contents):
Revision 45 by tony, Tue Dec 6 10:33:46 2016 UTC vs.
Revision 217 by tony, Fri Mar 16 10:27:26 2018 UTC

# Line 60 | Line 60
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  
# Line 236 | Line 239 | type
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 >      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 }
# Line 261 | Line 277 | resourcestring
277    SDatabaseFilter = 'Database Files (*.fdb; *.gdb)|*.gdb; *.fdb|All files (*.*)|*.*';
278    STrue = 'true';
279    SFalse = 'false';
280 +  SArray = '(array)';
281 +  SBlob = '(blob)';
282  
283   implementation
284  
# Line 370 | Line 388 | resourcestring
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';
# Line 405 | Line 423 | resourcestring
423    SPBIndexError = 'DPB Index out of range (%d)';
424    SPBParamTypeError = 'Invalid Request for DPB Param Type';
425    SDuplicateParamName = 'Blob or array parameter name must be unique (%s)';
426 <  SInvalidArrayDimensions = 'Invalid number of array dimensions {%d)';
426 >  SInvalidArrayDimensions = 'Invalid number of array dimensions (%d)';
427    SNotAMultiDatabaseTransaction = 'This is not a multi-database transaction';
428    SAttachmentListIndexError = 'Attachment List index out of range (%d)';
429    SNotAnArray = 'Table Column must be an array';
# Line 429 | Line 447 | resourcestring
447    SInvalidParamCount = 'Invalid Parameter Count. %d expected, %d found';
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 = (
# Line 590 | Line 622 | const
622      SParamBufferOverflow,
623      SInvalidParamCount,
624      SInvalidVariantType,
625 <    SServiceRunning
625 >    SServiceRunning,
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines