~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-11-06 05:47:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1909.
  • Revision ID: brian@tangent.org-20101106054712-jwxd8e0s0s3nm7qn
Merge in encapsulations in filesort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
  inline const char *getTableName()  const { return getShare()->getTableName(); }
417
417
 
418
418
  inline bool isDatabaseLowByteFirst() { return getShare()->db_low_byte_first; } /* Portable row format */
419
 
  inline bool isNameLock() const { return open_placeholder; }
 
419
  inline bool isNameLock() const { return getShare()->isNameLock(); }
 
420
  inline bool isReplaceWithNameLock() { return getShare()->replace_with_name_lock; }
420
421
 
421
422
  uint32_t index_flags(uint32_t idx) const
422
423
  {
437
438
  size_t max_row_length(const unsigned char *data);
438
439
  uint32_t find_shortest_key(const key_map *usable_keys);
439
440
  bool compare_record(Field **ptr);
440
 
  bool records_are_comparable();
441
 
  bool compare_records();
 
441
  bool compare_record();
442
442
  /* TODO: the (re)storeRecord's may be able to be further condensed */
443
443
  void storeRecord();
444
444
  void storeRecordAsInsert();
603
603
  */
604
604
  bool operator<(const Table &right) const
605
605
  {
606
 
    return getShare()->getCacheKey() < right.getShare()->getCacheKey();
 
606
    int result= strcasecmp(this->getShare()->getSchemaName(), right.getShare()->getSchemaName());
 
607
 
 
608
    if (result <  0)
 
609
      return true;
 
610
 
 
611
    if (result >  0)
 
612
      return false;
 
613
 
 
614
    result= strcasecmp(this->getShare()->getTableName(), right.getShare()->getTableName());
 
615
 
 
616
    if (result <  0)
 
617
      return true;
 
618
 
 
619
    if (result >  0)
 
620
      return false;
 
621
 
 
622
    if (this->getShare()->getTableProto()->type()  < right.getShare()->getTableProto()->type())
 
623
      return true;
 
624
 
 
625
    return false;
607
626
  }
608
627
 
609
628
  static bool compare(const Table *a, const Table *b)