~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/null_client.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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_NULL_CLIENT_H
21
 
#define DRIZZLED_PLUGIN_NULL_CLIENT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/plugin/client.h>
24
23
#include<boost/tokenizer.hpp>
90
89
 
91
90
  virtual void sendOK(void) {}
92
91
  virtual void sendEOF(void) {}
93
 
  virtual void sendError(uint32_t, const char*) {}
 
92
  virtual void sendError(const drizzled::error_t, const char*) {}
94
93
  virtual bool sendFields(List<Item>*) { return false; }
95
94
  virtual bool store(Field *) { return false; }
96
95
  virtual bool store(void) { return false; }
99
98
  virtual bool store(int64_t) { return false; }
100
99
  virtual bool store(uint64_t) { return false; }
101
100
  virtual bool store(double, uint32_t, String*) { return false; }
102
 
  virtual bool store(const DRIZZLE_TIME*) { return false; }
 
101
  virtual bool store(const type::Time*) { return false; }
103
102
  virtual bool store(const char*) { return false; }
104
103
  virtual bool store(const char*, size_t) { return false; }
105
104
  virtual bool store(const std::string &) { return false; }
115
114
 
116
115
    for (Tokenizer::iterator iter= tok.begin(); iter != tok.end(); ++iter)
117
116
    {
118
 
      byte.resize((*iter).size() +1); // +1 for the COM_QUERY
 
117
      byte.resize(iter->size() +1); // +1 for the COM_QUERY
119
118
      byte[0]= COM_QUERY;
120
 
      memcpy(&byte[1], (*iter).c_str(), (*iter).size());
 
119
      memcpy(&byte[1], iter->c_str(), iter->size());
121
120
      to_execute.push(byte);
122
121
    }
123
122
  }
126
125
} /* namespace plugin */
127
126
} /* namespace drizzled */
128
127
 
129
 
#endif /* DRIZZLED_PLUGIN_NULL_CLIENT_H */