~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.cc

  • Committer: Lee Bieber
  • Date: 2011-03-18 04:10:25 UTC
  • mfrom: (2241.1.2 build)
  • Revision ID: kalebral@gmail.com-20110318041025-1xoj1azy6zobhnbm
Merge Stewart - refactoring of default values
Merge Olaf - more refactoring

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
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <drizzled/function/set_user_var.h>
23
23
#include <drizzled/field/num.h>
24
24
#include <drizzled/session.h>
25
25
#include <drizzled/plugin/client.h>
 
26
#include <drizzled/user_var_entry.h>
 
27
#include <drizzled/table.h>
26
28
 
27
 
namespace drizzled
28
 
{
 
29
namespace drizzled {
29
30
 
30
31
/*
31
32
  When a user variable is updated (in a SET command or a query like
311
312
  return entry->val_decimal(&null_value, val);
312
313
}
313
314
 
314
 
void Item_func_set_user_var::print(String *str, enum_query_type query_type)
 
315
void Item_func_set_user_var::print(String *str)
315
316
{
316
317
  str->append(STRING_WITH_LEN("(@"));
317
318
  str->append(name.str, name.length);
318
319
  str->append(STRING_WITH_LEN(":="));
319
 
  args[0]->print(str, query_type);
 
320
  args[0]->print(str);
320
321
  str->append(')');
321
322
}
322
323