~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/neg.h

Merge Revision revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0 from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0

Original Authors: Marko Mäkelä <marko.makela@oracle.com>
Original commit message:
Merge from mysql-5.1-innodb:

  ------------------------------------------------------------
  revno: 3446
  revision-id: marko.makela@oracle.com-20100505100507-6kcd2hf32hruxbv7
  parent: marko.makela@oracle.com-20100505095328-vetnl0flhmhao7p5
  committer: Marko Mäkelä <marko.makela@oracle.com>
  branch nick: 5.1-innodb
  timestamp: Wed 2010-05-05 13:05:07 +0300
  message:
    Add Valgrind diagnostics to track down Bug #38999.
  ------------------------------------------------------------

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_FUNCTIONS_NEG_H
21
 
#define DRIZZLED_FUNCTIONS_NEG_H
22
 
 
23
 
#include <drizzled/functions/func.h> 
24
 
#include <drizzled/functions/num1.h>
 
20
#ifndef DRIZZLED_FUNCTION_MATH_NEG_H
 
21
#define DRIZZLED_FUNCTION_MATH_NEG_H
 
22
 
 
23
#include <drizzled/function/func.h>
 
24
#include <drizzled/function/num1.h>
 
25
 
 
26
namespace drizzled
 
27
{
25
28
 
26
29
class Item_func_neg :public Item_func_num1
27
30
{
35
38
  void fix_length_and_dec();
36
39
  void fix_num_length_and_dec();
37
40
  uint32_t decimal_precision() const { return args[0]->decimal_precision(); }
38
 
  bool check_vcol_func_processor(unsigned char *int_arg __attribute__((unused)))
39
 
  { return false; }
40
41
};
41
42
 
42
 
#endif /* DRIZZLED_FUNCTIONS_NEG_H */
 
43
} /* namespace drizzled */
 
44
 
 
45
#endif /* DRIZZLED_FUNCTION_MATH_NEG_H */