~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Lee Bieber
  • Date: 2010-12-13 18:43:55 UTC
  • mfrom: (1993.3.2 trunk-bug-686773)
  • mto: This revision was merged to the branch mainline in revision 1994.
  • Revision ID: kalebral@gmail.com-20101213184355-tinkj77bvfwwy6ql
Merge Andrew - fix bug 686773: TableFunction::Generator::push() needs assert

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)