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

Function is_sqlstate_warning

sql/sql_error.h:885–886  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

883 @retval false otherwise.
884*/
885inline bool is_sqlstate_warning(const char *s)
886{ return s[0] == '0' && s[1] == '1'; }
887
888
889/**

Callers 1

find_handlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected