~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/ha_myisam.cc

  • Committer: Brian Aker
  • Date: 2009-11-18 06:11:12 UTC
  • mfrom: (1220.1.10 staging)
  • Revision ID: brian@gaz-20091118061112-tyf4qrfr5v7i946b
Monty + Brian Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
  ~MyisamEngine()
69
69
  { }
70
70
 
 
71
  uint64_t table_flags() const
 
72
  {
 
73
    return (HA_NULL_IN_KEY |
 
74
            HA_DUPLICATE_POS |
 
75
            HA_CAN_INDEX_BLOBS |
 
76
            HA_AUTO_PART_KEY |
 
77
            HA_NO_TRANSACTIONS |
 
78
            HA_HAS_RECORDS |
 
79
            HA_STATS_RECORDS_IS_EXACT |
 
80
            HA_NEED_READ_RANGE_BUFFER |
 
81
            HA_MRR_CANT_SORT);
 
82
  }
 
83
 
71
84
  virtual Cursor *create(TableShare &table,
72
85
                          MEM_ROOT *mem_root)
73
86
  {
106
119
                                       const bool,
107
120
                                       drizzled::message::Table *table_proto)
108
121
{
109
 
  int error= 1;
 
122
  int error= ENOENT;
110
123
  ProtoCache::iterator iter;
111
124
 
112
125
  pthread_mutex_lock(&proto_cache_mutex);
502
515
                     TableShare &table_arg)
503
516
  : Cursor(engine_arg, table_arg),
504
517
    file(0),
505
 
    int_table_flags(HA_NULL_IN_KEY |
506
 
                    HA_DUPLICATE_POS |
507
 
                    HA_CAN_INDEX_BLOBS |
508
 
                    HA_AUTO_PART_KEY |
509
 
                    HA_NO_TRANSACTIONS |
510
 
                    HA_HAS_RECORDS |
511
 
                    HA_STATS_RECORDS_IS_EXACT |
512
 
                    HA_NEED_READ_RANGE_BUFFER |
513
 
                    HA_MRR_CANT_SORT),
514
518
     can_enable_indexes(1)
515
 
{}
 
519
{
 
520
  is_ordered= true;
 
521
}
516
522
 
517
523
Cursor *ha_myisam::clone(MEM_ROOT *mem_root)
518
524
{
575
581
  if (!(test_if_locked & HA_OPEN_WAIT_IF_LOCKED))
576
582
    mi_extra(file, HA_EXTRA_WAIT_LOCK, 0);
577
583
  if (!table->s->db_record_offset)
578
 
    int_table_flags|=HA_REC_NOT_IN_SEQ;
 
584
    is_ordered= false;
 
585
 
579
586
 
580
587
  keys_with_parts.reset();
581
588
  for (i= 0; i < table->s->keys; i++)
1574
1581
};
1575
1582
 
1576
1583
 
1577
 
drizzle_declare_plugin(myisam)
 
1584
drizzle_declare_plugin
1578
1585
{
1579
1586
  "MyISAM",
1580
1587
  "1.0",