~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/function/time/typecast.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#pragma once
21
21
 
22
 
#include <drizzled/charset_info.h>
 
22
#include <drizzled/charset.h>
23
23
#include <drizzled/field.h>
24
24
#include <drizzled/function/str/strfunc.h>
25
25
#include <drizzled/temporal.h>
26
26
 
27
 
namespace drizzled
28
 
{
 
27
namespace drizzled {
29
28
 
30
 
class Item_typecast :public Item_str_func
 
29
class Item_typecast : public Item_str_func
31
30
{
32
31
public:
33
32
  using Item_func::tmp_table_field;
66
65
class Item_char_typecast :public Item_typecast
67
66
{
68
67
  int cast_length;
69
 
  const CHARSET_INFO *cast_cs, *from_cs;
 
68
  const charset_info_st *cast_cs, *from_cs;
70
69
  bool charset_conversion;
71
70
  String tmp_value;
72
71
public:
73
72
  using Item_func::tmp_table_field;
74
73
 
75
 
  Item_char_typecast(Item *a, int length_arg, const CHARSET_INFO * const cs_arg)
 
74
  Item_char_typecast(Item *a, int length_arg, const charset_info_st * const cs_arg)
76
75
    :Item_typecast(a), cast_length(length_arg), cast_cs(cs_arg) {}
77
76
  enum Functype functype() const { return CHAR_TYPECAST_FUNC; }
78
77
  bool eq(const Item *item, bool binary_cmp) const;