~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_result_interceptor.h

mergeĀ lp:~hingo/drizzle/drizzle-auth_ldap-fix-and-docs

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
18
18
 */
19
19
 
20
20
 
21
 
#ifndef DRIZZLED_SELECT_RESULT_INTERCEPTOR_H
22
 
#define DRIZZLED_SELECT_RESULT_INTERCEPTOR_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/select_result.h>
25
24
 
32
31
  sending of result set metadata should be suppressed as well.
33
32
*/
34
33
 
35
 
class select_result_interceptor: public select_result
 
34
class select_result_interceptor : public select_result
36
35
{
37
36
public:
38
 
  select_result_interceptor() {}              /* Remove gcc warning */
39
 
  uint32_t field_count(List<Item> &) const
 
37
  uint32_t field_count(List<Item>&) const
40
38
  { return 0; }
41
 
  bool send_fields(List<Item> &)
42
 
  { return false; }
 
39
  void send_fields(List<Item>&)
 
40
  { }
43
41
};
44
42
 
45
43
 
46
44
} /* namespace drizzled */
47
45
 
48
 
#endif /* DRIZZLED_SELECT_RESULT_INTERCEPTOR_H */