~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/replace_select.cc

  • Committer: Brian Aker
  • Date: 2009-12-09 01:09:43 UTC
  • mfrom: (1240.1.8 build)
  • Revision ID: brian@gaz-20091209010943-n5iq2b9ins7mx73j
MergeĀ build

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  Select_Lex_Unit *unit= &session->lex->unit;
37
37
  select_result *sel_result= NULL;
38
38
  bool res;
39
 
  bool need_start_waiting;
40
39
 
41
40
  if (insert_precheck(session, all_tables))
42
41
  {
48
47
 
49
48
  unit->set_limit(select_lex);
50
49
 
51
 
  if (! (need_start_waiting= ! wait_if_global_read_lock(session, 0, 1)))
 
50
  if (wait_if_global_read_lock(session, false, true))
52
51
  {
53
52
    return true;
54
53
  }
69
68
                                                session->lex->duplicates,
70
69
                                                session->lex->ignore)))
71
70
    {
72
 
      res= handle_select(session, 
73
 
                         session->lex, 
74
 
                         sel_result, 
 
71
      res= handle_select(session,
 
72
                         session->lex,
 
73
                         sel_result,
75
74
                         OPTION_SETUP_TABLES_DONE);
76
75
      /*
77
76
         Invalidate the table in the query cache if something changed