MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / is_sqlstate_exception

Function is_sqlstate_exception

sql/sql_error.h:911–912  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

909 @retval false otherwise.
910*/
911inline bool is_sqlstate_exception(const char *s)
912{ return s[0] != '0' || s[1] > '2'; }
913
914
915#endif // SQL_ERROR_H

Callers 1

find_handlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected