~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/conv_charset.h

  • Committer: Mark Atwood
  • Date: 2009-03-04 01:02:00 UTC
  • mto: (968.2.20 mordred)
  • mto: This revision was merged to the branch mainline in revision 971.
  • Revision ID: me@mark.atwood.name-20090304010200-t1n4xxdoil2yae9a
add gearman logging plugin

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, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
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
22
22
 
23
23
#include <drizzled/function/str/strfunc.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
class Item_func_conv_charset :public Item_str_func
29
26
{
30
27
  bool use_cached_value;
40
37
    conv_charset= cs;
41
38
    if (cache_if_const && args[0]->const_item())
42
39
    {
43
 
      size_t errors= 0;
 
40
      uint32_t errors= 0;
44
41
      String tmp, *str= args[0]->val_str(&tmp);
45
42
      if (!str || str_value.copy(str->ptr(), str->length(),
46
43
                                 str->charset(), conv_charset, &errors))
68
65
  virtual void print(String *str, enum_query_type query_type);
69
66
};
70
67
 
71
 
} /* namespace drizzled */
72
 
 
73
68
#endif /* DRIZZLED_FUNCTION_STR_CONV_CHARSET_H */