~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2009-11-17 18:11:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1222.
  • Revision ID: brian@gaz-20091117181145-567c6eg3zdi7572l
Remove mysql_lock_have_duplicate()  (we don't have merge, and our partition
will not require this in the future).

Show diffs side-by-side

added added

removed removed

Lines of Context:
601
601
0 if table is unique
602
602
*/
603
603
 
604
 
TableList* unique_table(Session *session, TableList *table, TableList *table_list,
 
604
TableList* unique_table(TableList *table, TableList *table_list,
605
605
                        bool check_alias)
606
606
{
607
607
  TableList *res;
635
635
 
636
636
  for (;;)
637
637
  {
638
 
    if (((! (res= find_table_in_global_list(table_list, d_name, t_name))) &&
639
 
         (! (res= mysql_lock_have_duplicate(session, table, table_list)))) ||
 
638
    if ((! (res= find_table_in_global_list(table_list, d_name, t_name))) ||
640
639
        ((!res->table || res->table != table->table) &&
641
640
         (!check_alias || !(my_strcasecmp(files_charset_info, t_alias, res->alias))) &&
642
641
         res->select_lex && !res->select_lex->exclude_from_table_unique_test))