Merge from 5.1 up to rev 3392

This commit is contained in:
Bjorn Munch 2010-06-02 16:23:29 +02:00
commit d5f2972628
1523 changed files with 954338 additions and 10066 deletions

View file

@ -1262,7 +1262,7 @@ void die(const char *fmt, ...)
Help debugging by displaying any warnings that might have
been produced prior to the error
*/
if (cur_con)
if (cur_con && !cur_con->pending)
show_warnings_before_error(&cur_con->mysql);
cleanup_and_exit(1);