mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibSQL: Sort the list of SQL error codes alphabetically
This commit is contained in:
parent
264db4fc40
commit
a1007c37a4
1 changed files with 17 additions and 17 deletions
|
@ -42,28 +42,28 @@ constexpr char const* command_tag(SQLCommand command)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ENUMERATE_SQL_ERRORS(S) \
|
#define ENUMERATE_SQL_ERRORS(S) \
|
||||||
S(NoError, "No error") \
|
|
||||||
S(InternalError, "{}") \
|
|
||||||
S(NotYetImplemented, "{}") \
|
|
||||||
S(DatabaseUnavailable, "Database Unavailable") \
|
|
||||||
S(StatementUnavailable, "Statement with id '{}' Unavailable") \
|
|
||||||
S(SyntaxError, "Syntax Error") \
|
|
||||||
S(DatabaseDoesNotExist, "Database '{}' does not exist") \
|
|
||||||
S(SchemaDoesNotExist, "Schema '{}' does not exist") \
|
|
||||||
S(SchemaExists, "Schema '{}' already exist") \
|
|
||||||
S(TableDoesNotExist, "Table '{}' does not exist") \
|
|
||||||
S(ColumnDoesNotExist, "Column '{}' does not exist") \
|
|
||||||
S(AmbiguousColumnName, "Column name '{}' is ambiguous") \
|
S(AmbiguousColumnName, "Column name '{}' is ambiguous") \
|
||||||
S(TableExists, "Table '{}' already exist") \
|
S(BooleanOperatorTypeMismatch, "Cannot apply '{}' operator to non-boolean operands") \
|
||||||
S(InvalidType, "Invalid type '{}'") \
|
S(ColumnDoesNotExist, "Column '{}' does not exist") \
|
||||||
|
S(DatabaseDoesNotExist, "Database '{}' does not exist") \
|
||||||
|
S(DatabaseUnavailable, "Database Unavailable") \
|
||||||
|
S(IntegerOperatorTypeMismatch, "Cannot apply '{}' operator to non-numeric operands") \
|
||||||
|
S(InternalError, "{}") \
|
||||||
S(InvalidDatabaseName, "Invalid database name '{}'") \
|
S(InvalidDatabaseName, "Invalid database name '{}'") \
|
||||||
S(InvalidValueType, "Invalid type for attribute '{}'") \
|
|
||||||
S(InvalidNumberOfPlaceholderValues, "Number of values does not match number of placeholders") \
|
S(InvalidNumberOfPlaceholderValues, "Number of values does not match number of placeholders") \
|
||||||
S(InvalidNumberOfValues, "Number of values does not match number of columns") \
|
S(InvalidNumberOfValues, "Number of values does not match number of columns") \
|
||||||
S(BooleanOperatorTypeMismatch, "Cannot apply '{}' operator to non-boolean operands") \
|
S(InvalidOperator, "Invalid operator '{}'") \
|
||||||
|
S(InvalidType, "Invalid type '{}'") \
|
||||||
|
S(InvalidValueType, "Invalid type for attribute '{}'") \
|
||||||
|
S(NoError, "No error") \
|
||||||
|
S(NotYetImplemented, "{}") \
|
||||||
S(NumericOperatorTypeMismatch, "Cannot apply '{}' operator to non-numeric operands") \
|
S(NumericOperatorTypeMismatch, "Cannot apply '{}' operator to non-numeric operands") \
|
||||||
S(IntegerOperatorTypeMismatch, "Cannot apply '{}' operator to non-numeric operands") \
|
S(SchemaDoesNotExist, "Schema '{}' does not exist") \
|
||||||
S(InvalidOperator, "Invalid operator '{}'")
|
S(SchemaExists, "Schema '{}' already exist") \
|
||||||
|
S(StatementUnavailable, "Statement with id '{}' Unavailable") \
|
||||||
|
S(SyntaxError, "Syntax Error") \
|
||||||
|
S(TableDoesNotExist, "Table '{}' does not exist") \
|
||||||
|
S(TableExists, "Table '{}' already exist")
|
||||||
|
|
||||||
enum class SQLErrorCode {
|
enum class SQLErrorCode {
|
||||||
#undef __ENUMERATE_SQL_ERROR
|
#undef __ENUMERATE_SQL_ERROR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue