summaryrefslogtreecommitdiff
path: root/client/mysqlslap.c
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-04-11 22:23:16 +0200
committerunknown <msvensson@neptunus.(none)>2006-04-11 22:23:16 +0200
commit00a44542e6993105ccda13c4376faef7fa82bf40 (patch)
treeef673bf3732d75829f12c2488a8d4b97ec8df812 /client/mysqlslap.c
parent0592560eb56e283064b11470390c7581031d4ec6 (diff)
downloadmariadb-git-00a44542e6993105ccda13c4376faef7fa82bf40.tar.gz
Bug#18012 mysqlslap fails if querystring starts with delimiter
- Terminate loop not only when the limit is met, but alse when there is no more stmts client/mysqlslap.c: Terminate loop not only when the limit is met, but alse when there is no more stmts mysql-test/r/mysqlslap.result: Remove the extra statmemnt
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r--client/mysqlslap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c
index 160e13364a4..9ae5725216f 100644
--- a/client/mysqlslap.c
+++ b/client/mysqlslap.c
@@ -1174,8 +1174,8 @@ limit_not_met:
goto end;
}
- if (con->limit && queries < con->limit)
- goto limit_not_met;
+ if (!con->stmt && con->limit && queries < con->limit)
+ goto limit_not_met;
end: