~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2011-01-04 18:14:33 UTC
  • mto: (2054.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2055.
  • Revision ID: brian@tangent.org-20110104181433-qnrc603tjuly60wl
Cleanup error usage around identifier usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3685
3685
        }
3686
3686
      }
3687
3687
      else
 
3688
      {
3688
3689
        session->used_tables|= item->used_tables();
 
3690
      }
 
3691
 
3689
3692
      session->lex->current_select->cur_pos_in_select_list++;
3690
3693
    }
3691
3694
    /*
3705
3708
    qualified '*', and all columns were coalesced, we have to give a more
3706
3709
    meaningful message than ER_BAD_TABLE_ERROR.
3707
3710
  */
3708
 
  if (!table_name)
 
3711
  if (not table_name)
 
3712
  {
3709
3713
    my_message(ER_NO_TABLES_USED, ER(ER_NO_TABLES_USED), MYF(0));
 
3714
  }
3710
3715
  else
 
3716
  {
3711
3717
    my_error(ER_BAD_TABLE_ERROR, MYF(0), table_name);
 
3718
  }
3712
3719
 
3713
3720
  return true;
3714
3721
}