Skip to content

Commit

Permalink
Revert "Fix result of merge."
Browse files Browse the repository at this point in the history
This reverts commit e0793d3.

In idiomatic C++, accessor functions should not discard qualifiers.
  • Loading branch information
dr-m committed Jul 2, 2020
1 parent 90d1e58 commit c43a666
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sql/sql_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -3408,7 +3408,11 @@ class THD :public Statement,
inline bool is_error() const { return m_stmt_da->is_error(); }

/// Returns Diagnostics-area for the current statement.
Diagnostics_area *get_stmt_da() const
Diagnostics_area *get_stmt_da()
{ return m_stmt_da; }

/// Returns Diagnostics-area for the current statement.
const Diagnostics_area *get_stmt_da() const
{ return m_stmt_da; }

/// Sets Diagnostics-area for the current statement.
Expand Down

0 comments on commit c43a666

Please sign in to comment.