diff options
author | pem@mysql.comhem.se <> | 2005-04-20 15:37:07 +0200 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2005-04-20 15:37:07 +0200 |
commit | 189d6b502bbdf3b9e295177dc4f61ed28ca72db6 (patch) | |
tree | 3c9b6f1fc0b8cc55e92c4fbcb5cca379e6afb6a0 /sql/sp_head.cc | |
parent | ff665c9513658c383f2b5cc0261eaf998c1b158d (diff) | |
download | mariadb-git-189d6b502bbdf3b9e295177dc4f61ed28ca72db6.tar.gz |
Fixed BUG#6898: Stored procedure crash if GOTO statements exist
Bug in the optimizer caused an infinite loop for weird code.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 0fe9c449540..c505ef05b57 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -1499,7 +1499,7 @@ sp_instr_jump::opt_shortcut_jump(sp_head *sp, sp_instr *start) { uint ndest; - if (start == i) + if (start == i || this == i) break; ndest= i->opt_shortcut_jump(sp, start); if (ndest == dest) |