MCPcopy Create free account
hub / github.com/Tencent/phxsql / optimize_plugin_compare_by_pointer

Function optimize_plugin_compare_by_pointer

phx_percona/percona/sql/sql_acl.cc:9723–9747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9721}
9722
9723void optimize_plugin_compare_by_pointer(LEX_STRING *plugin_name)
9724{
9725#if defined(HAVE_OPENSSL)
9726 if (my_strcasecmp(system_charset_info, sha256_password_plugin_name.str,
9727 plugin_name->str) == 0)
9728 {
9729 plugin_name->str= sha256_password_plugin_name.str;
9730 plugin_name->length= sha256_password_plugin_name.length;
9731 }
9732 else
9733#endif
9734 if (my_strcasecmp(system_charset_info, native_password_plugin_name.str,
9735 plugin_name->str) == 0)
9736 {
9737 plugin_name->str= native_password_plugin_name.str;
9738 plugin_name->length= native_password_plugin_name.length;
9739 }
9740 else
9741 if (my_strcasecmp(system_charset_info, old_password_plugin_name.str,
9742 plugin_name->str) == 0)
9743 {
9744 plugin_name->str= old_password_plugin_name.str;
9745 plugin_name->length= old_password_plugin_name.length;
9746 }
9747}
9748
9749/**
9750 Sets the default default auth plugin value if no option was specified.

Callers 4

acl_update_userFunction · 0.85
acl_insert_userFunction · 0.85
replace_user_tableFunction · 0.85
set_default_auth_pluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected