~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/client/concurrent.h

  • Committer: patrick crews
  • Date: 2011-03-15 12:12:09 UTC
  • mfrom: (1099.4.216 drizzle)
  • Revision ID: gleebix@gmail.com-20110315121209-8g2tkf31w0rx9ter
Tags: 2011.03.12
Updated translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_PLUGIN_CLIENT_CONCURRENT_H
21
 
#define DRIZZLED_PLUGIN_CLIENT_CONCURRENT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/plugin/client.h>
24
23
#include <boost/tokenizer.hpp>
124
123
 
125
124
    for (Tokenizer::iterator iter= tok.begin(); iter != tok.end(); ++iter)
126
125
    {
127
 
      byte.resize((*iter).size() +1); // +1 for the COM_QUERY
 
126
      byte.resize(iter->size() +1); // +1 for the COM_QUERY
128
127
      byte[0]= COM_QUERY;
129
 
      memcpy(&byte[1], (*iter).c_str(), (*iter).size());
 
128
      memcpy(&byte[1], iter->c_str(), iter->size());
130
129
      to_execute.push(byte);
131
130
    }
132
131
 
143
142
} /* namespace plugin */
144
143
} /* namespace drizzled */
145
144
 
146
 
#endif /* DRIZZLED_PLUGIN_CLIENT_CONCURRENT_H */