Post-review fix. (BUG#15231)

sql/sp_rcontext.cc:
  Post-review fix.
This commit is contained in:
unknown 2006-01-17 12:48:48 +01:00
parent a1187b7123
commit fbe2ba9fa8

View File

@ -220,7 +220,7 @@ sp_rcontext::find_handler(uint sql_errno,
Only "exception conditions" are propagated to handlers in calling Only "exception conditions" are propagated to handlers in calling
contexts. If no handler is found locally for a "completion condition" contexts. If no handler is found locally for a "completion condition"
(warning or "not found") we will simply resume execution. (warning or "not found") we will simply resume execution.
*/ */
if (m_prev_runtime_ctx && IS_EXCEPTION_CONDITION(sqlstate) && if (m_prev_runtime_ctx && IS_EXCEPTION_CONDITION(sqlstate) &&
level == MYSQL_ERROR::WARN_LEVEL_ERROR) level == MYSQL_ERROR::WARN_LEVEL_ERROR)
return m_prev_runtime_ctx->find_handler(sql_errno, level); return m_prev_runtime_ctx->find_handler(sql_errno, level);