~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.cc

  • Committer: Brian Aker
  • Date: 2009-08-04 06:19:52 UTC
  • mfrom: (1108.1.5 remove-multi)
  • mto: This revision was merged to the branch mainline in revision 1109.
  • Revision ID: brian@gaz-20090804061952-6cmb8fb94d62qc2p
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
2379
2379
}
2380
2380
 
2381
2381
/**
2382
 
  Give error if we some tables are done with a full join.
2383
 
 
2384
 
  This is used by multi_table_update and multi_table_delete when running
2385
 
  in safe mode.
2386
 
 
2387
 
  @param join           Join condition
2388
 
 
2389
 
  @retval
2390
 
    0   ok
2391
 
  @retval
2392
 
    1   Error (full join used)
2393
 
*/
2394
 
bool error_if_full_join(JOIN *join)
2395
 
{
2396
 
  for (JoinTable *tab= join->join_tab, *end= join->join_tab+join->tables; tab < end; tab++)
2397
 
  {
2398
 
    if (tab->type == JT_ALL && (!tab->select || !tab->select->quick))
2399
 
    {
2400
 
      my_message(ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,
2401
 
                 ER(ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE), MYF(0));
2402
 
      return(1);
2403
 
    }
2404
 
  }
2405
 
  return(0);
2406
 
}
2407
 
 
2408
 
/**
2409
2382
  @brief
2410
2383
  
2411
2384
  Process one record of the nested loop join.