~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/numhybrid.h

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:18:23 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051823-14fyn2kvg8pc5a15
\r and trailing whitespace removed.

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
30
30
protected:
31
31
  Item_result hybrid_type;
32
32
public:
 
33
  Item_func_numhybrid(): Item_func(), hybrid_type(REAL_RESULT)
 
34
  {}
33
35
  Item_func_numhybrid(Item *a) :Item_func(a), hybrid_type(REAL_RESULT)
34
36
  {}
35
37
  Item_func_numhybrid(Item *a,Item *b)
46
48
 
47
49
  double val_real();
48
50
  int64_t val_int();
49
 
  my_decimal *val_decimal(my_decimal *);
 
51
  type::Decimal *val_decimal(type::Decimal *);
50
52
  String *val_str(String*str);
51
53
 
52
54
  /**
75
77
       - The same pointer it was given, with the area initialized to the
76
78
         result of the operation.
77
79
  */
78
 
  virtual my_decimal *decimal_op(my_decimal *)= 0;
 
80
  virtual type::Decimal *decimal_op(type::Decimal *)= 0;
79
81
 
80
82
  /**
81
83
     @brief Performs the operation that this functions implements when the