diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 7c8fe04f36d..8ccf7b7d5e2 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -4692,7 +4692,7 @@ int cli_read_binary_rows(MYSQL_STMT *stmt) NET *net; DBUG_ENTER("cli_read_binary_rows"); - + if (!mysql) { set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);