~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

Modernize our call to the parser, no more casting required.

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
25
25
#include <drizzled/item/null.h>
26
26
#include <drizzled/sql_parse.h>
27
27
#include <drizzled/session.h>
 
28
#include <drizzled/user_var_entry.h>
28
29
 
29
30
namespace drizzled
30
31
{
47
48
}
48
49
 
49
50
 
50
 
my_decimal *Item_func_get_user_var::val_decimal(my_decimal *dec)
 
51
type::Decimal *Item_func_get_user_var::val_decimal(type::Decimal *dec)
51
52
{
52
53
  assert(fixed == 1);
53
54
  if (!var_entry)