summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-24 14:02:06 +0200
committerNoel Grandin <noel@peralex.com>2016-02-25 13:50:24 +0200
commit6a9046d02e17a7dd0997aa3a041d468be9d8f80b (patch)
tree22caf4c1ed549be92eaffc8a88fd848ee9dc30db /include/connectivity
parentaef004cea8e7b93f84c13292a009e689f99383d8 (diff)
convert ErrorCode to scoped enum
Change-Id: I37d2dd0b84fce229b548bbe941cfdd1169170af9
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/IParseContext.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/connectivity/IParseContext.hxx b/include/connectivity/IParseContext.hxx
index a7bb4648834a..132bae27b69d 100644
--- a/include/connectivity/IParseContext.hxx
+++ b/include/connectivity/IParseContext.hxx
@@ -33,22 +33,22 @@ namespace connectivity
class IParseContext
{
public:
- enum ErrorCode
+ enum class ErrorCode
{
- ERROR_NONE = 0,
- ERROR_GENERAL, // "Syntax error in SQL expression"
- ERROR_VALUE_NO_LIKE, // "The value #1 can not be used with LIKE."
- ERROR_FIELD_NO_LIKE, // "LIKE can not be used with this field."
- ERROR_INVALID_COMPARE, // "The entered criterion can not be compared with this field."
- ERROR_INVALID_INT_COMPARE, // "The field can not be compared with a number."
- ERROR_INVALID_DATE_COMPARE, // "The field can not be compared with a date."
- ERROR_INVALID_REAL_COMPARE, // "The field can not be compared with a floating point number."
- ERROR_INVALID_TABLE_NOSUCH, // "The database does not contain a table named \"#\"."
+ None = 0,
+ General, // "Syntax error in SQL expression"
+ ValueNoLike, // "The value #1 can not be used with LIKE."
+ FieldNoLike, // "LIKE can not be used with this field."
+ InvalidCompare, // "The entered criterion can not be compared with this field."
+ InvalidIntCompare, // "The field can not be compared with a number."
+ InvalidDateCompare, // "The field can not be compared with a date."
+ InvalidRealCompare, // "The field can not be compared with a floating point number."
+ InvalidTableNosuch, // "The database does not contain a table named \"#\"."
// Named like this to avoid conflict with a #define in the Windows system ODBC headers.
- ERROR_INVALID_TABLE_OR_QUERY, // "The database does contain neither a table nor a query named \"#\"."
- ERROR_INVALID_COLUMN, // "The column \"#1\" is unknown in the table \"#2\"."
- ERROR_INVALID_TABLE_EXIST, // "The database already contains a table or view with name \"#\"."
- ERROR_INVALID_QUERY_EXIST // "The database already contains a query with name \"#\".";
+ InvalidTableOrQuery, // "The database does contain neither a table nor a query named \"#\"."
+ InvalidColumn, // "The column \"#1\" is unknown in the table \"#2\"."
+ InvalidTableExist, // "The database already contains a table or view with name \"#\"."
+ InvalidQueryExist // "The database already contains a query with name \"#\".";
};
enum InternationalKeyCode