diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2021-09-15 15:54:49 +0200 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2021-09-16 13:38:48 +0200 |
| commit | d552e092c9f3e20da078d1b62b976f629f73d3a4 (patch) | |
| tree | 1ad8172027bcd1d5c06fe2dd3d6acb2aa4fcb99c /sql/sql_get_diagnostics.cc | |
| parent | 0ff8976e129a0e1f3f17a6ed278ddc4851b4535d (diff) | |
| download | mariadb-git-d552e092c9f3e20da078d1b62b976f629f73d3a4.tar.gz | |
MDEV-10075: Provide index of error causing error in array INSERT
use existing Warning_info::m_current_row_for_warning instead
of a newly introduced counter.
But use m_current_row_for_warning to count rows also in the parser
and during prepare.
Diffstat (limited to 'sql/sql_get_diagnostics.cc')
| -rw-r--r-- | sql/sql_get_diagnostics.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_get_diagnostics.cc b/sql/sql_get_diagnostics.cc index 0de1cde3c49..6a479726df1 100644 --- a/sql/sql_get_diagnostics.cc +++ b/sql/sql_get_diagnostics.cc @@ -339,7 +339,7 @@ Condition_information_item::get_value(THD *thd, const Sql_condition *cond) value= make_utf8_string_item(thd, &str); break; case ERROR_INDEX: - value= new (thd->mem_root) Item_uint(thd, cond->error_index); + value= new (thd->mem_root) Item_uint(thd, cond->m_error_index); } DBUG_RETURN(value); |
