~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.h

  • Committer: Vijay Samuel
  • Date: 2010-09-10 21:03:37 UTC
  • mto: (1757.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1758.
  • Revision ID: vijay@vijay-20100910210337-rf7c2ymawtqj6tkv
Merge added utf 8 tamil test case suite and test case for creating a database in tamil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <string>
30
30
 
31
31
#include <boost/unordered_map.hpp>
32
 
#include <boost/thread/condition_variable.hpp>
33
 
#include <boost/dynamic_bitset.hpp>
34
32
 
35
33
#include "drizzled/typelib.h"
36
34
#include "drizzled/memory/root.h"
218
216
 
219
217
    if (iter == _keynames.end())
220
218
    {
221
 
      position= UINT32_MAX; //historical, required for finding primary key from unique
 
219
      position= -1; //historical, required for finding primary key from unique
222
220
      return false;
223
221
    }
224
222
 
230
228
private:
231
229
  std::vector<TYPELIB> intervals;                       /* pointer to interval info */
232
230
 
233
 
  boost::mutex mutex;                /* For locking the share  */
234
 
  boost::condition_variable cond;                       /* To signal that share is ready */
 
231
  pthread_mutex_t mutex;                /* For locking the share  */
 
232
  pthread_cond_t cond;                  /* To signal that share is ready */
235
233
 
236
234
 
237
235
  void lock()
238
236
  {
239
 
    mutex.lock();
 
237
    pthread_mutex_lock(&mutex);
240
238
  }
241
239
 
242
240
  void unlock()
243
241
  {
244
 
    mutex.unlock();
 
242
    pthread_mutex_unlock(&mutex);
245
243
  }
246
244
public:
247
245
 
259
257
 
260
258
  const CHARSET_INFO *table_charset; /* Default charset of string fields */
261
259
 
262
 
  boost::dynamic_bitset<> all_set;
 
260
  MyBitmap all_set;
 
261
private:
 
262
  std::vector<my_bitmap_map> all_bitmap;
263
263
 
 
264
public:
264
265
  /*
265
266
    Key which is used for looking-up table in table cache and in the list
266
267
    of thread's temporary tables. Has the form of:
552
553
  uint32_t next_number_key_offset;          /* autoinc keypart offset in a key */
553
554
  uint32_t next_number_keypart;             /* autoinc keypart number in a key */
554
555
  uint32_t error, open_errno, errarg;       /* error from open_table_def() */
 
556
  uint32_t column_bitmap_size;
555
557
 
556
558
  uint8_t blob_ptr_size;                        /* 4 or 8 */
557
559
  bool db_low_byte_first;               /* Portable row format */