1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

New my_gethostbyname_r() handling

Changed some status variable names
Fix bug in GRANT ... PASSWORD string
This commit is contained in:
monty@hundin.mysql.fi
2002-05-16 16:32:51 +03:00
parent 14b55bcc72
commit 353fb57b74
13 changed files with 203 additions and 121 deletions

View File

@@ -983,12 +983,17 @@ static int replace_user_table(TABLE *table, const LEX_USER &combo,
char *password,empty_string[1];
DBUG_ENTER("replace_user_table");
password=empty_string;
empty_string[0]=0;
if (combo.password.str && combo.password.str[0])
password=combo.password.str;
else
{
password=empty_string;
empty_string[0]=0;
if (combo.password.length != HASH_PASSWORD_LENGTH)
{
my_error(ER_PASSWORD_NO_MATCH,MYF(0));
DBUG_RETURN(-1);
}
password=combo.password.str;
}
table->field[0]->store(combo.host.str,combo.host.length);