~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/execute.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-10 17:58:23 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110810175823-s0tm7bv5qlg8uyaf
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
{
36
36
}
37
37
 
38
 
void Execute::run(const char *arg, size_t length)
39
 
{
40
 
  run(std::string(arg, length));
41
 
}
42
 
 
43
 
void Execute::run(const std::string &execution_string, sql::ResultSet &result_set)
 
38
void Execute::run(str_ref execution_string, sql::ResultSet &result_set)
44
39
{
45
40
  if (not _session.isConcurrentExecuteAllowed())
46
41
  {
84
79
    {
85
80
      boost::this_thread::restore_interruption dl(_session.getThreadInterupt());
86
81
      
87
 
      try {
 
82
      try 
 
83
      {
88
84
        thread->join();
89
85
      }
90
86
      catch(boost::thread_interrupted const&)
101
97
  }
102
98
}
103
99
 
104
 
void Execute::run(const std::string &execution_string)
 
100
void Execute::run(str_ref execution_string)
105
101
{
106
102
  if (not _session.isConcurrentExecuteAllowed())
107
103
  {
143
139
    {
144
140
      boost::this_thread::restore_interruption dl(_session.getThreadInterupt());
145
141
 
146
 
      try {
 
142
      try 
 
143
      {
147
144
        thread->join();
148
145
      }
149
146
      catch(boost::thread_interrupted const&)