~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
  */
471
471
  bool operator<(const Table &right) const
472
472
  {
473
 
    int result= strcmp(this->getShare()->getSchemaName(), right.getShare()->getSchemaName());
474
 
 
475
 
    if (result <  0)
476
 
      return true;
477
 
 
478
 
    if (result >  0)
479
 
      return false;
480
 
 
481
 
    result= strcmp(this->getShare()->getTableName(), right.getShare()->getTableName());
482
 
 
483
 
    if (result <  0)
484
 
      return true;
485
 
 
486
 
    if (result >  0)
487
 
      return false;
488
 
 
489
 
    if (this->getShare()->getTableProto()->type()  < 
490
 
        right.getShare()->getTableProto()->type())
 
473
    int result= strcasecmp(this->getShare()->getSchemaName(), right.getShare()->getSchemaName());
 
474
 
 
475
    if (result <  0)
 
476
      return true;
 
477
 
 
478
    if (result >  0)
 
479
      return false;
 
480
 
 
481
    result= strcasecmp(this->getShare()->getTableName(), right.getShare()->getTableName());
 
482
 
 
483
    if (result <  0)
 
484
      return true;
 
485
 
 
486
    if (result >  0)
 
487
      return false;
 
488
 
 
489
    if (this->getShare()->getTableProto()->type()  < right.getShare()->getTableProto()->type())
491
490
      return true;
492
491
 
493
492
    return false;
593
592
 
594
593
int rename_file_ext(const char * from,const char * to,const char * ext);
595
594
bool check_column_name(const char *name);
596
 
bool check_db_name(LEX_STRING *org_name);
 
595
bool check_db_name(SchemaIdentifier &schema);
597
596
bool check_table_name(const char *name, uint32_t length);
598
597
 
599
598
} /* namespace drizzled */