diff options
| author | monty@mysql.com <> | 2005-03-16 16:11:01 +0200 |
|---|---|---|
| committer | monty@mysql.com <> | 2005-03-16 16:11:01 +0200 |
| commit | 594ef41b2d981bac7dc18ffaaf3e78c970ae4d65 (patch) | |
| tree | 91072764c1f84696f62c39d4e54fea6a1c35c516 /sql/sql_error.cc | |
| parent | 8e54dece315d7e96ce2e4eccf01adfabe660a63a (diff) | |
| download | mariadb-git-594ef41b2d981bac7dc18ffaaf3e78c970ae4d65.tar.gz | |
Cleanup during reviews
Removed some optional arguments
Fixed portability problem in federated tests
Diffstat (limited to 'sql/sql_error.cc')
| -rw-r--r-- | sql/sql_error.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc index 4420f2d16ad..281ac7169c0 100644 --- a/sql/sql_error.cc +++ b/sql/sql_error.cc @@ -80,7 +80,8 @@ void mysql_reset_errors(THD *thd, bool force) thd->warn_id= thd->query_id; free_root(&thd->warn_root,MYF(0)); bzero((char*) thd->warn_count, sizeof(thd->warn_count)); - if (force) thd->total_warn_count= 0; + if (force) + thd->total_warn_count= 0; thd->warn_list.empty(); thd->row_count= 1; // by default point to row 1 } @@ -113,7 +114,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, DBUG_RETURN(0); if (thd->query_id != thd->warn_id) - mysql_reset_errors(thd); + mysql_reset_errors(thd, 0); thd->got_warning= 1; if (thd->spcont && thd->spcont->find_handler(code, |
