diff options
author | kostja@bodhi.local <> | 2006-08-30 03:00:19 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2006-08-30 03:00:19 +0400 |
commit | ebb70704303ef3f7e227e8102d8eb4b466bdd9e4 (patch) | |
tree | 844b46ab5d82eec374f925e63be3812e697f87e3 /sql/sql_error.cc | |
parent | 0368914b9a22891e9eac2b8a77dfbe43ea80c820 (diff) | |
parent | 3bf609b7f2b73555b1e241dc7c354818b0bbbc5a (diff) | |
download | mariadb-git-ebb70704303ef3f7e227e8102d8eb4b466bdd9e4.tar.gz |
Merge bodhi.local:/opt/local/work/mysql-5.0-runtime-safemerge
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r-- | sql/sql_error.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc index 9a9a9784df3..dc7a437d7d1 100644 --- a/sql/sql_error.cc +++ b/sql/sql_error.cc @@ -139,14 +139,8 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, } if (thd->spcont && - thd->spcont->find_handler(code, - ((int) level >= - (int) MYSQL_ERROR::WARN_LEVEL_WARN && - thd->really_abort_on_warning()) ? - MYSQL_ERROR::WARN_LEVEL_ERROR : level)) + thd->spcont->handle_error(code, level, thd)) { - if (! thd->spcont->found_handler_here()) - thd->net.report_error= 1; /* Make "select" abort correctly */ DBUG_RETURN(NULL); } query_cache_abort(&thd->net); |