mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for #2212 (mysql_change_user doesn't work in embedded library)
now it's working
This commit is contained in:
@ -258,6 +258,13 @@ int emb_next_result(MYSQL *mysql)
|
||||
DBUG_RETURN(0); /* No more results */
|
||||
}
|
||||
|
||||
int emb_read_change_user_result(MYSQL *mysql,
|
||||
char *buff __attribute__((unused)),
|
||||
const char *passwd __attribute__((unused)))
|
||||
{
|
||||
return mysql_errno(mysql);
|
||||
}
|
||||
|
||||
MYSQL_METHODS embedded_methods=
|
||||
{
|
||||
emb_mysql_read_query_result,
|
||||
@ -272,7 +279,8 @@ MYSQL_METHODS embedded_methods=
|
||||
emb_unbuffered_fetch,
|
||||
emb_free_embedded_thd,
|
||||
emb_read_statistic,
|
||||
emb_next_result
|
||||
emb_next_result,
|
||||
emb_read_change_user_result
|
||||
};
|
||||
|
||||
C_MODE_END
|
||||
|
Reference in New Issue
Block a user