diff options
author | brian@piggy.tangent.org <> | 2007-08-20 13:03:50 -0700 |
---|---|---|
committer | brian@piggy.tangent.org <> | 2007-08-20 13:03:50 -0700 |
commit | bd0bcb70f530a770f82984e512e68aa63a6db6fc (patch) | |
tree | 2b1cf296c75193a5be9e05f491d127ff7a4aea45 /client | |
parent | ae2b243a2efcb7f225e740788c5e999d94e99dce (diff) | |
download | mariadb-git-bd0bcb70f530a770f82984e512e68aa63a6db6fc.tar.gz |
Extending tests for detach (found a memory issue in it, this fixes that and now tests it).
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlslap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 43d8b1b1560..2811011a1ef 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -1804,6 +1804,13 @@ limit_not_met: { mysql_close(mysql); + if (!(mysql= mysql_init(NULL))) + { + fprintf(stderr,"%s: mysql_init() failed ERROR : %s\n", + my_progname, mysql_error(mysql)); + exit(0); + } + if (slap_connect(mysql)) goto end; } |