~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
1854
1854
    The parsed item tree should not depend on
1855
1855
    <code>session->variables.collation_connection</code>.
1856
1856
  */
1857
 
  const CHARSET_INFO * const cs= session->variables.getCollation();
 
1857
  const charset_info_st * const cs= session->variables.getCollation();
1858
1858
  Item *sp;
1859
1859
 
1860
1860
  if (cs->mbminlen > 1)
2074
2074
 
2075
2075
 
2076
2076
Item*
2077
 
create_func_char_cast(Session *session, Item *a, int len, const CHARSET_INFO * const cs)
 
2077
create_func_char_cast(Session *session, Item *a, int len, const charset_info_st * const cs)
2078
2078
{
2079
 
  const CHARSET_INFO * const real_cs= (cs ? cs : session->variables.getCollation());
 
2079
  const charset_info_st * const real_cs= (cs ? cs : session->variables.getCollation());
2080
2080
  return new (session->mem_root) Item_char_typecast(a, len, real_cs);
2081
2081
}
2082
2082
 
2084
2084
Item *
2085
2085
create_func_cast(Session *session, Item *a, Cast_target cast_type,
2086
2086
                 const char *c_len, const char *c_dec,
2087
 
                 const CHARSET_INFO * const cs)
 
2087
                 const charset_info_st * const cs)
2088
2088
{
2089
2089
  Item *res= NULL;
2090
2090
  uint32_t len;