MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_last_error

Method get_last_error

sql/sql_prepare.h:264–264  ·  view source on GitHub ↗

The following members are only valid if execute_direct() or move_to_next_result() returned an error. They never fail, but if they are called when there is no result, or no error, the result is not defined. */

Source from the content-addressed store, hash-verified

262 result, or no error, the result is not defined.
263 */
264 const char *get_last_error() const { return m_diagnostics_area.message(); }
265 unsigned int get_last_errno() const { return m_diagnostics_area.sql_errno(); }
266 const char *get_last_sqlstate() const { return m_diagnostics_area.get_sqlstate(); }
267

Callers

nothing calls this directly

Calls 1

messageMethod · 0.45

Tested by

no test coverage detected