18 #include "sql_error.h"
61 bool is_invalidated()
const {
return m_invalidated; }
62 void reset_reprepare_observer() { m_invalidated= FALSE; }
89 virtual bool execute_server_code(THD *thd)= 0;
112 unsigned int size()
const {
return m_rows->elements; }
120 size_t get_field_count()
const {
return m_column_count; }
122 static void operator delete(
void *ptr,
size_t size)
throw ();
128 size_t m_column_count;
219 return m_current_rset ? m_current_rset->get_field_count() : 0;
232 return m_diagnostics_area.affected_rows();
242 return m_diagnostics_area.last_insert_id();
255 return m_diagnostics_area.warn_count();
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(); }
299 m_current_rset= m_current_rset->m_next_rset;
300 return test(m_current_rset);
318 void free_old_result();
339 const Ed_column &operator[](
const unsigned int column_index)
const
341 return *get_column(column_index);
343 const Ed_column *get_column(
const unsigned int column_index)
const
345 DBUG_ASSERT(column_index < size());
346 return m_column_array + column_index;
348 size_t size()
const {
return m_column_count; }
351 :m_column_array(column_array_arg),
352 m_column_count(column_count_arg)
356 size_t m_column_count;
359 #endif // SQL_PREPARE_H