Checks if the specified SQL-state-string defines EXCEPTION condition. This function assumes that the given string contains a valid SQL-state. @param s the condition SQLSTATE. @retval true if the given string defines EXCEPTION condition. @retval false otherwise. */
| 909 | @retval false otherwise. |
| 910 | */ |
| 911 | inline bool is_sqlstate_exception(const char *s) |
| 912 | { return s[0] != '0' || s[1] > '2'; } |
| 913 | |
| 914 | |
| 915 | #endif // SQL_ERROR_H |