~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/num1.h

  • Committer: Monty Taylor
  • Date: 2008-10-30 18:44:27 UTC
  • mto: (520.4.35 devel)
  • mto: This revision was merged to the branch mainline in revision 572.
  • Revision ID: monty@inaugust.com-20081030184427-7cr1v6r5cqnuqm3v
Removed global sql_array.h.

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_FUNCTION_NUM1_H
21
 
#define DRIZZLED_FUNCTION_NUM1_H
22
 
 
23
 
#include <drizzled/function/numhybrid.h>
24
 
 
25
 
namespace drizzled
26
 
{
 
20
#ifndef DRIZZLED_FUNCTIONS_NUM1_H
 
21
#define DRIZZLED_FUNCTIONS_NUM1_H
 
22
 
 
23
#include <drizzled/item.h>
 
24
#include <drizzled/functions/numhybrid.h>
27
25
 
28
26
/* function where type of result detected by first argument */
29
27
class Item_func_num1: public Item_func_numhybrid
30
28
{
31
29
public:
32
 
  Item_func_num1(): Item_func_numhybrid() {}
33
30
  Item_func_num1(Item *a) :Item_func_numhybrid(a) {}
34
31
  Item_func_num1(Item *a, Item *b) :Item_func_numhybrid(a, b) {}
35
32
 
36
33
  void fix_num_length_and_dec();
37
34
  void find_num_type();
38
 
  String *str_op(String *)
 
35
  String *str_op(String *str __attribute__((unused)))
39
36
  { assert(0); return 0; }
40
37
};
41
38
 
42
 
} /* namespace drizzled */
43
39
 
44
 
#endif /* DRIZZLED_FUNCTION_NUM1_H */
 
40
#endif /* DRIZZLED_FUNCTIONS_NUM1_H */