~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/num_op.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 11:44:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623114430-no355yypk4y3icqb
Refactor

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_FUNCTION_NUM_OP_H
21
 
#define DRIZZLED_FUNCTION_NUM_OP_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/function/numhybrid.h>
24
23
 
33
32
  Item_num_op(Item *a,Item *b) :Item_func_numhybrid(a, b) {}
34
33
  virtual void result_precision()= 0;
35
34
 
36
 
  virtual inline void print(String *str, enum_query_type query_type)
 
35
  virtual inline void print(String *str)
37
36
  {
38
 
    print_op(str, query_type);
 
37
    print_op(str);
39
38
  }
40
39
 
41
40
  void find_num_type();
45
44
 
46
45
} /* namespace drizzled */
47
46
 
48
 
#endif /* DRIZZLED_FUNCTION_NUM_OP_H */