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

Function is_sqlstate_not_found

sql/sql_error.h:898–899  ·  view source on GitHub ↗

Checks if the specified SQL-state-string defines NOT FOUND 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 NOT FOUND condition. @retval false otherwise. */

Source from the content-addressed store, hash-verified

896 @retval false otherwise.
897*/
898inline bool is_sqlstate_not_found(const char *s)
899{ return s[0] == '0' && s[1] == '2'; }
900
901
902/**

Callers 1

find_handlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected