~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-12-16 04:01:22 UTC
  • mfrom: (1996.2.1 compare)
  • Revision ID: brian@tangent.org-20101216040122-eodh5shwsij35ybe
Merge in uuid tree.

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
 
    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)