~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Olaf van der Spek
  • Date: 2011-04-20 09:27:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2285.
  • Revision ID: olafvdspek@gmail.com-20110420092749-hw1q9rfj1pumc2no
Session Cache

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
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>
92
91
 
93
92
  virtual void sendOK(void) {}
94
93
  virtual void sendEOF(void) {}
95
 
  virtual void sendError(uint32_t, const char*) {}
 
94
  virtual void sendError(const drizzled::error_t, const char*) {}
96
95
  virtual bool sendFields(List<Item>*) { return false; }
97
96
  virtual bool store(Field *) { return false; }
98
97
  virtual bool store(void) { return false; }
101
100
  virtual bool store(int64_t) { return false; }
102
101
  virtual bool store(uint64_t) { return false; }
103
102
  virtual bool store(double, uint32_t, String*) { return false; }
104
 
  virtual bool store(const DRIZZLE_TIME*) { return false; }
 
103
  virtual bool store(const type::Time*) { return false; }
105
104
  virtual bool store(const char*) { return false; }
106
105
  virtual bool store(const char*, size_t) { return false; }
107
106
  virtual bool store(const std::string &) { return false; }
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 */