diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-12-13 17:14:29 -0500 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-12-14 09:21:30 -0500 |
commit | a1007c37a4ce0103373e2a22c192412f2d7b0ab9 (patch) | |
tree | 4c6639340e0af46dc66ef50ff890556bfa85e533 /Userland/Libraries | |
parent | 264db4fc405c63c28510dfd538177ee0862f92f5 (diff) | |
download | serenity-a1007c37a4ce0103373e2a22c192412f2d7b0ab9.zip |
LibSQL: Sort the list of SQL error codes alphabetically
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibSQL/Result.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Userland/Libraries/LibSQL/Result.h b/Userland/Libraries/LibSQL/Result.h index 594c2200e3..d5d8f781a7 100644 --- a/Userland/Libraries/LibSQL/Result.h +++ b/Userland/Libraries/LibSQL/Result.h @@ -42,28 +42,28 @@ constexpr char const* command_tag(SQLCommand command) } #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(TableExists, "Table '{}' already exist") \ - S(InvalidType, "Invalid type '{}'") \ + S(BooleanOperatorTypeMismatch, "Cannot apply '{}' operator to non-boolean operands") \ + 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(InvalidValueType, "Invalid type for attribute '{}'") \ S(InvalidNumberOfPlaceholderValues, "Number of values does not match number of placeholders") \ 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(IntegerOperatorTypeMismatch, "Cannot apply '{}' operator to non-numeric operands") \ - S(InvalidOperator, "Invalid operator '{}'") + S(SchemaDoesNotExist, "Schema '{}' does not exist") \ + 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 { #undef __ENUMERATE_SQL_ERROR |