~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 15:59:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705155949-7cojlehrjxt2ck95
Add const
Remove unused vars

Show diffs side-by-side

added added

removed removed

Lines of Context:
633
633
    return true;
634
634
 
635
635
  /* Check that we are not using table that we are updating in a sub select */
 
636
  if (unique_table(table_list, table_list->next_global))
636
637
  {
637
 
    TableList *duplicate;
638
 
    if ((duplicate= unique_table(table_list, table_list->next_global)))
639
 
    {
640
 
      my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->getTableName());
641
 
      return true;
642
 
    }
 
638
    my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->getTableName());
 
639
    return true;
643
640
  }
644
641
 
645
642
  return false;