summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-01-17 19:02:42 +0100
committerunknown <msvensson@neptunus.(none)>2006-01-17 19:02:42 +0100
commitac2c02f6fa70ec7af9b48ba10eec672e8f4e59a6 (patch)
tree9a1cb07d8af522e595e5c9fb8ab67c32134c5cc5 /client
parentfe1970d4b9084de6e883b0dae50ab4d5d3957e54 (diff)
downloadmariadb-git-ac2c02f6fa70ec7af9b48ba10eec672e8f4e59a6.tar.gz
Fix for connection not being added to connection pool if "disable_abort_on_error" was used.
client/mysqltest.c: If connection suceeded don't close it, just call handle_no_error which will check if an error was expected mysql-test/r/mysqltest.result: Update test result mysql-test/t/mysqltest.test: Add test for connection not being added to connection pool if "disable_abort_on_error" was used
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 6a2a7b072de..ca28419fa4f 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -2143,19 +2143,8 @@ int connect_n_handle_errors(struct st_query *q, MYSQL* con, const char* host,
*create_conn= 0;
goto err;
}
- else
- {
- handle_no_error(q);
- /*
- Fail if there was no error but we expected it.
- We also don't want to have connection in this case.
- */
- mysql_close(con);
- *create_conn= 0;
- error= 1;
- goto err;
- }
+ handle_no_error(q);
/*
TODO: change this to 0 in future versions, but the 'kill' test relies on