~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 12:51:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808125119-qcrkgv0frmxk03rn
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
    get_auto_increment().
171
171
  */
172
172
  uint64_t next_insert_id;
173
 
  uint64_t getNextInsertId()
 
173
  uint64_t getNextInsertId() const
174
174
  {
175
175
    return next_insert_id;
176
176
  }
178
178
  /**
179
179
    Used by SHOW TABLE STATUS to get the current auto_inc from the engine
180
180
  */
181
 
  uint64_t getAutoIncrement()
 
181
  uint64_t getAutoIncrement() const
182
182
  {
183
183
    return stats.auto_increment_value;
184
184
  }
223
223
  int updateRecord(const unsigned char * old_data, unsigned char * new_data) __attribute__ ((warn_unused_result));
224
224
  int deleteRecord(const unsigned char * buf) __attribute__ ((warn_unused_result));
225
225
  void ha_release_auto_increment();
226
 
 
227
 
  /** to be actually called to get 'check()' functionality*/
228
226
  int ha_check(Session*);
229
 
 
230
227
  void ha_start_bulk_insert(ha_rows rows);
231
228
  int ha_end_bulk_insert();
232
229
  int ha_delete_all_rows();
236
233
  int ha_disable_indexes(uint32_t mode);
237
234
  int ha_enable_indexes(uint32_t mode);
238
235
  int ha_discard_or_import_tablespace(bool discard);
239
 
  void closeMarkForDelete(const char *name);
 
236
  void closeMarkForDelete();
240
237
 
241
238
  void adjust_next_insert_id_after_explicit_value(uint64_t nr);
242
239
  int update_auto_increment();
603
600
    no new engine should ever use it). Right
604
601
    now HEAP does rely on it, so we cannot remove it.
605
602
  */
606
 
  virtual void drop_table(const char *name);
 
603
  virtual void drop_table();
607
604
};
608
605
 
609
606
extern const char *ha_row_type[];