~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-12-17 00:08:06 UTC
  • mfrom: (2002.1.4 clean)
  • Revision ID: brian@tangent.org-20101217000806-fa6kmggjnhsl4q85
Rollup for field encapsulation, monty fix for bzrignore, and Andrew bug
fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
603
603
  */
604
604
  bool operator<(const Table &right) const
605
605
  {
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;
 
606
    return getShare()->getCacheKey() < right.getShare()->getCacheKey();
626
607
  }
627
608
 
628
609
  static bool compare(const Table *a, const Table *b)