diff options
| author | jani@ua141d10.elisa.omakaista.fi <> | 2007-04-11 13:27:36 +0300 |
|---|---|---|
| committer | jani@ua141d10.elisa.omakaista.fi <> | 2007-04-11 13:27:36 +0300 |
| commit | 77251d2268fcca40012294b48c5eee4d3176ebf6 (patch) | |
| tree | 58adc160db7af6ab47ce242d1780bc1d50a44de8 /sql/sql_error.cc | |
| parent | 3db7cdd53656b06ba109feab9cca570d3e3da759 (diff) | |
| download | mariadb-git-77251d2268fcca40012294b48c5eee4d3176ebf6.tar.gz | |
Added warn_root as argument for push_back()
Diffstat (limited to 'sql/sql_error.cc')
| -rw-r--r-- | sql/sql_error.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc index f551a7ef4b2..61442c52de7 100644 --- a/sql/sql_error.cc +++ b/sql/sql_error.cc @@ -149,7 +149,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, { /* We have to use warn_root, as mem_root is freed after each query */ if ((err= new (&thd->warn_root) MYSQL_ERROR(thd, code, level, msg))) - thd->warn_list.push_back(err); + thd->warn_list.push_back(err, &thd->warn_root); } thd->warn_count[(uint) level]++; thd->total_warn_count++; |
