~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-08-18 07:19:56 UTC
  • mfrom: (1116.1.3 stewart)
  • mto: This revision was merged to the branch mainline in revision 1118.
  • Revision ID: brian@gaz-20090818071956-nfpoe9rp3i7p50kx
Merge my branch from Stewart into one branch

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 */