diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-12 10:27:44 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-12 10:27:44 +0200 |
commit | 6cbc74a70678ff9c11c140559b4cbc62bda3649e (patch) | |
tree | 57e4e5f090680523efaa8793dfcc3278d1d6da97 /sql-common | |
parent | d6d469237270047422f78224a549d5956a62652c (diff) | |
download | mariadb-git-6cbc74a70678ff9c11c140559b4cbc62bda3649e.tar.gz |
Add DBUG_ASSERT to check that mysql is not null when mysql_reconnect is called
Add DBUG_PRINT to show the value of mysql->reconnect
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index ff5f1ef150a..3acd763c054 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -2215,6 +2215,8 @@ my_bool mysql_reconnect(MYSQL *mysql) { MYSQL tmp_mysql; DBUG_ENTER("mysql_reconnect"); + DBUG_ASSERT(mysql); + DBUG_PRINT("enter", ("mysql->reconnect: %d", mysql->reconnect)); if (!mysql->reconnect || (mysql->server_status & SERVER_STATUS_IN_TRANS) || !mysql->host_info) |