~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.h

  • Committer: Brian Aker
  • Date: 2008-11-18 23:19:19 UTC
  • mfrom: (584.1.16 devel)
  • Revision ID: brian@tangent.org-20081118231919-w9sr347dtiwhccml
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  Field_varstring(unsigned char *ptr_arg,
34
34
                  uint32_t len_arg, uint32_t length_bytes_arg,
35
35
                  unsigned char *null_ptr_arg, unsigned char null_bit_arg,
36
 
                  enum utype unireg_check_arg, const char *field_name_arg,
37
 
                  TABLE_SHARE *share, const CHARSET_INFO * const cs)
38
 
    :Field_longstr(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
39
 
                   unireg_check_arg, field_name_arg, cs),
40
 
     length_bytes(length_bytes_arg)
41
 
  {
42
 
    share->varchar_fields++;
43
 
  }
 
36
                  enum utype unireg_check_arg, const char *field_name_arg,
 
37
                  TABLE_SHARE *share, const CHARSET_INFO * const cs);
44
38
  Field_varstring(uint32_t len_arg,bool maybe_null_arg,
45
39
                  const char *field_name_arg,
46
 
                  TABLE_SHARE *share, const CHARSET_INFO * const cs)
47
 
    :Field_longstr((unsigned char*) 0,len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
48
 
                   NONE, field_name_arg, cs),
49
 
     length_bytes(len_arg < 256 ? 1 :2)
50
 
  {
51
 
    share->varchar_fields++;
52
 
  }
 
40
                  TABLE_SHARE *share, const CHARSET_INFO * const cs);
53
41
 
54
42
  enum_field_types type() const { return DRIZZLE_TYPE_VARCHAR; }
55
43
  enum ha_base_keytype key_type() const;