mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Fix for the bug #1336 mysql.cc assumes DATABASE() doesn't return NULL
This commit is contained in:
parent
fed70100e7
commit
63aebfe5ec
1 changed files with 1 additions and 1 deletions
|
@ -2328,7 +2328,7 @@ com_status(String *buffer __attribute__((unused)),
|
|||
(result=mysql_use_result(&mysql)))
|
||||
{
|
||||
MYSQL_ROW cur=mysql_fetch_row(result);
|
||||
tee_fprintf(stdout, "Current database:\t%s\n",cur[0]);
|
||||
tee_fprintf(stdout, "Current database:\t%s\n", cur[0] ? cur[0] : "");
|
||||
tee_fprintf(stdout, "Current user:\t\t%s\n",cur[1]);
|
||||
(void) mysql_fetch_row(result); // Read eof
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue