~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/execute.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

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&)