~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Brian Aker
  • Date: 2009-12-01 02:39:03 UTC
  • mfrom: (1234.1.4 push)
  • Revision ID: brian@gaz-20091201023903-1id5z7xnup695jaq
Merge of Brian + Jay test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
  ha_rows estimation_rows_to_insert;
172
172
public:
173
173
  drizzled::plugin::StorageEngine *engine;      /* storage engine of this Cursor */
174
 
  unsigned char *ref;                           /* Pointer to current row */
 
174
  inline drizzled::plugin::StorageEngine *getEngine() const     /* table_type for handler */
 
175
  {
 
176
    return engine;
 
177
  }
 
178
  unsigned char *ref;                           /* Pointer to current row */
175
179
  unsigned char *dup_ref;                       /* Pointer to duplicate row */
176
180
 
177
181
  ha_statistics stats;
257
261
 
258
262
  /* this is necessary in many places, e.g. in HANDLER command */
259
263
  int ha_index_or_rnd_end();
260
 
  drizzled::plugin::StorageEngine::Table_flags ha_table_flags() const;
261
264
 
262
265
  /**
263
266
    These functions represent the public interface to *users* of the
559
562
  virtual int final_drop_index(Table *)
560
563
  { return (HA_ERR_WRONG_COMMAND); }
561
564
 
562
 
  uint32_t max_record_length() const
563
 
  { return std::min((unsigned int)HA_MAX_REC_LENGTH, max_supported_record_length()); }
564
 
  uint32_t max_keys() const
565
 
  { return std::min((unsigned int)MAX_KEY, max_supported_keys()); }
566
 
  uint32_t max_key_parts() const
567
 
  { return std::min((unsigned int)MAX_REF_PARTS, max_supported_key_parts()); }
568
 
  uint32_t max_key_length() const
569
 
  { return std::min((unsigned int)MAX_KEY_LENGTH, max_supported_key_length()); }
570
 
  uint32_t max_key_part_length(void) const
571
 
  { return std::min((unsigned int)MAX_KEY_LENGTH, max_supported_key_part_length()); }
572
 
 
573
 
  virtual uint32_t max_supported_record_length(void) const
574
 
  { return HA_MAX_REC_LENGTH; }
575
 
  virtual uint32_t max_supported_keys(void) const { return 0; }
576
 
  virtual uint32_t max_supported_key_parts(void) const { return MAX_REF_PARTS; }
577
 
  virtual uint32_t max_supported_key_length(void) const { return MAX_KEY_LENGTH; }
578
 
  virtual uint32_t max_supported_key_part_length(void) const { return 255; }
579
 
 
580
565
  virtual bool low_byte_first(void) const { return true; }
581
566
  virtual uint32_t checksum(void) const { return 0; }
582
 
  virtual bool is_crashed(void) const  { return false; }
583
 
  virtual bool auto_repair(void) const { return false; }
584
567
 
585
568
  /**
586
569
    Is not invoked for non-transactional temporary tables.
844
827
bool mysql_derived_filling(Session *session, LEX *lex, TableList *t);
845
828
int prepare_create_field(CreateField *sql_field,
846
829
                         uint32_t *blob_columns,
847
 
                         int *timestamps, int *timestamps_with_niladic,
848
 
                         int64_t table_flags);
 
830
                         int *timestamps, int *timestamps_with_niladic);
849
831
 
850
832
bool mysql_create_table(Session *session,
851
833
                        drizzled::TableIdentifier &identifier,