diff options
author | unknown <ram@gw.mysql.r18.ru> | 2003-10-06 15:47:17 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2003-10-06 15:47:17 +0500 |
commit | 63aebfe5ec8fc2424e80b7f1c02d63dec1c66e04 (patch) | |
tree | d64f9ea6e4c91d3f5d0b0c48357544f20ee64c68 /client | |
parent | fed70100e762eb88a0f1c8bb57715e9530b76666 (diff) | |
download | mariadb-git-63aebfe5ec8fc2424e80b7f1c02d63dec1c66e04.tar.gz |
Fix for the bug #1336 mysql.cc assumes DATABASE() doesn't return NULL
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 2fa131b854a..fd63c0dc18e 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -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 } |