dbconst.pp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt, member of the
  5. Free Pascal development team
  6. Constants used for displaying messages in DB units
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit dbconst;
  14. Interface
  15. Const
  16. SActiveDataset = 'Operation cannot be performed on an active dataset';
  17. SBadParamFieldType = 'Bad fieldtype for parameter "%s".';
  18. SCantSetAutoIncFields = 'AutoInc Fields are read-only';
  19. SConnected = 'Operation cannot be performed on an connected database';
  20. SDatasetReadOnly = 'Dataset is read-only.';
  21. SDatasetRegistered = 'Dataset already registered : "%s"';
  22. SDuplicateFieldName = 'Duplicate fieldname : "%s"';
  23. SErrAssTransaction = 'Cannot assign transaction while old transaction active!';
  24. SErrColumnNotFound = 'Column "%s" not found.';
  25. SErrDatabasenAssigned = 'Database not assigned!';
  26. SErrNoDatabaseAvailable = 'Invalid operation: Not attached to database';
  27. SErrNoSelectStatement = 'Cannot open a non-select statement';
  28. SErrNoStatement = 'SQL statement not set';
  29. SErrTransAlreadyActive = 'Transaction already active';
  30. SErrTransactionnSet = 'Transaction not set';
  31. SErrConnTransactionnSet = 'Transaction of connection not set';
  32. STransNotActive = 'Operation cannot be performed on an inactive transaction';
  33. STransActive = 'Operation cannot be performed on an active transaction';
  34. SFieldNotFound = 'Field not found : "%s"';
  35. SInactiveDataset = 'Operation cannot be performed on an inactive dataset';
  36. SInvalidDisplayValues = '"%s" are not valid boolean displayvalues';
  37. SInvalidFieldKind = '%s : invalid field kind : ';
  38. SInvalidFieldSize = 'Invalid field size : %d';
  39. SInvalidTypeConversion = 'Invalid type conversion to %s in field %s';
  40. SNeedField = 'Field %s is required, but not supplied.';
  41. SNeedFieldName = 'Field needs a name';
  42. SNoDataset = 'No dataset asssigned for field : "%s"';
  43. SNoDatasetRegistered = 'No such dataset registered : "%s"';
  44. SNoDatasets = 'No datasets are attached to the database';
  45. SNoSuchRecord = 'Could not find the requested record.';
  46. SNoTransactionRegistered = 'No such transaction registered : "%s"';
  47. SNoTransactions = 'No transactions are attached to the database';
  48. SNotABoolean = '"%s" is not a valid boolean';
  49. SNotAFloat = '"%s" is not a valid float';
  50. SNotAninteger = '"%s" is not a valid integer';
  51. SNotConnected = 'Operation cannot be performed on an disconnected database';
  52. SNotInEditState = 'Operation not allowed, dataset "%s" is not in an edit state.';
  53. SParameterNotFound = 'Parameter "%s" not found';
  54. SRangeError = '%f is not between %f and %f for %s';
  55. SReadOnlyField = 'Field %s cannot be modified, it is read-only.';
  56. STransactionRegistered = 'Transaction already registered : "%s"';
  57. SUniDirectional = 'Operation cannot be performed on an unidirectional dataset';
  58. SUnknownField = 'No field named "%s" was found in dataset "%s"';
  59. SUnknownFieldType = 'Unknown field type : %s';
  60. SUnknownParamFieldType = 'Unknown fieldtype for parameter "%s".';
  61. SMetadataUnavailable = 'The metadata is not available for this type of database.';
  62. SDeletedRecord = 'The record is deleted.';
  63. Implementation
  64. end.
  65. {
  66. $Log$
  67. Revision 1.7 2005-02-07 11:23:04 joost
  68. - added SMetadataUnavailable
  69. - added SDeletedRecord
  70. Revision 1.6 2005/01/12 10:29:20 michael
  71. * Patch from Joost Van der Sluis:
  72. - added error message for if transaction of DB is not set
  73. Revision 1.5 2004/12/13 20:19:49 michael
  74. + Initial implementation of params
  75. Revision 1.4 2004/11/05 08:32:02 michael
  76. TBufDataset.inc:
  77. - replaced Freemem by Reallocmem, Free by FreeAndNil
  78. Database.inc:
  79. - Moved Active property from TSQLTransaction to TDBTransaction
  80. - Gives an error if the database of an active transaction is changed
  81. Dataset.inc
  82. - Don't distribute events if FDisableControlsCount > 0
  83. - Replaced FActive by FState<>dsInactive
  84. - Set EOF after append
  85. db.pp:
  86. - Removed duplicate definition of TAlignment
  87. - Moved Active property from TSQLTransaction to TDBTransaction
  88. - Replaced FActive by FState<>dsInactive
  89. - Gives an error if the database of an active transaction is changed
  90. sqldb:
  91. - Moved Active property from TSQLTransaction to TDBTransaction
  92. - replaced Freemem by Reallocmem, Free by FreeAndNil
  93. IBConnection:
  94. - Moved FSQLDAAllocated to the cursor
  95. PQConnection:
  96. - Don't try to free the statement if a fatal error occured
  97. Revision 1.3 2004/10/27 07:23:13 michael
  98. + Patch from Joost Van der Sluis to fix transactions
  99. Revision 1.2 2004/10/16 09:20:25 michael
  100. + Moved resourcestrings to dbconst
  101. Revision 1.1 2004/10/10 14:45:51 michael
  102. + Use of dbconst for resource strings
  103. }