dbconst.pp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. Implementation
  62. end.
  63. {
  64. $Log$
  65. Revision 1.6 2005-01-12 10:29:20 michael
  66. * Patch from Joost Van der Sluis:
  67. - added error message for if transaction of DB is not set
  68. Revision 1.5 2004/12/13 20:19:49 michael
  69. + Initial implementation of params
  70. Revision 1.4 2004/11/05 08:32:02 michael
  71. TBufDataset.inc:
  72. - replaced Freemem by Reallocmem, Free by FreeAndNil
  73. Database.inc:
  74. - Moved Active property from TSQLTransaction to TDBTransaction
  75. - Gives an error if the database of an active transaction is changed
  76. Dataset.inc
  77. - Don't distribute events if FDisableControlsCount > 0
  78. - Replaced FActive by FState<>dsInactive
  79. - Set EOF after append
  80. db.pp:
  81. - Removed duplicate definition of TAlignment
  82. - Moved Active property from TSQLTransaction to TDBTransaction
  83. - Replaced FActive by FState<>dsInactive
  84. - Gives an error if the database of an active transaction is changed
  85. sqldb:
  86. - Moved Active property from TSQLTransaction to TDBTransaction
  87. - replaced Freemem by Reallocmem, Free by FreeAndNil
  88. IBConnection:
  89. - Moved FSQLDAAllocated to the cursor
  90. PQConnection:
  91. - Don't try to free the statement if a fatal error occured
  92. Revision 1.3 2004/10/27 07:23:13 michael
  93. + Patch from Joost Van der Sluis to fix transactions
  94. Revision 1.2 2004/10/16 09:20:25 michael
  95. + Moved resourcestrings to dbconst
  96. Revision 1.1 2004/10/10 14:45:51 michael
  97. + Use of dbconst for resource strings
  98. }