diff options
author | unknown <msvensson@neptunus.(none)> | 2006-07-20 14:51:04 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-07-20 14:51:04 +0200 |
commit | 9e40aad7e5a118fb88a16ec86a1db445c33632ce (patch) | |
tree | 72240866bd536a7fc66daf8fb3eff4c273b29c78 /client | |
parent | dd62875825f06580c7d0a4a08bafee1f1604ee03 (diff) | |
download | mariadb-git-9e40aad7e5a118fb88a16ec86a1db445c33632ce.tar.gz |
Bug#20365 mysqlslap fails with error message about result sets
- Using CLIENT_MULTI_RESULTS is needed to execute stored procedures
client/mysqlslap.c:
Use CLIENT_MULTI_RESULTS as connect_flags for all connections to the MySQL server.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlslap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 11d3ae5a2df..c061433178b 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -130,6 +130,8 @@ static my_bool opt_compress= FALSE, tty_password= FALSE, opt_silent= FALSE, auto_generate_sql= FALSE; +static unsigned long connect_flags= CLIENT_MULTI_RESULTS; + static int verbose, num_int_cols, num_char_cols, delimiter_length; static int iterations; static char *default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME; @@ -243,7 +245,6 @@ static int gettimeofday(struct timeval *tp, void *tzp) int main(int argc, char **argv) { MYSQL mysql; - int client_flag= 0; int x; unsigned long long client_limit; statement *eptr; @@ -293,12 +294,11 @@ int main(int argc, char **argv) #endif mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, default_charset); - client_flag|= CLIENT_MULTI_RESULTS; if (!opt_only_print) { if (!(mysql_real_connect(&mysql, host, user, opt_password, NULL, opt_mysql_port, - opt_mysql_unix_port, client_flag))) + opt_mysql_unix_port, connect_flags))) { fprintf(stderr,"%s: Error when connecting to server: %s\n", my_progname,mysql_error(&mysql)); @@ -1141,7 +1141,7 @@ run_task(thread_context *con) create_schema_string, opt_mysql_port, opt_mysql_unix_port, - 0))) + connect_flags))) { fprintf(stderr,"%s: %s\n",my_progname,mysql_error(mysql)); goto end; |