~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

  • Committer: Brian Aker
  • Date: 2009-05-22 18:50:00 UTC
  • mfrom: (1034.1.3 merge)
  • Revision ID: brian@gaz-20090522185000-wvehph10pogb92jt
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLE_SERVER_FIELD_BLOB
22
22
#define DRIZZLE_SERVER_FIELD_BLOB
23
23
 
24
 
#include <drizzled/field/longstr.h>
 
24
#include <drizzled/field/str.h>
25
25
 
26
26
#include <string>
27
27
 
28
 
class Field_blob :public Field_longstr {
 
28
class Field_blob :public Field_str {
29
29
protected:
30
30
  uint32_t packlength;
31
31
  String value;                         // For temporaries
44
44
             TableShare *share, uint32_t blob_pack_length, const CHARSET_INFO * const cs);
45
45
  Field_blob(uint32_t len_arg, bool maybe_null_arg, const char *field_name_arg,
46
46
             const CHARSET_INFO * const cs)
47
 
    :Field_longstr((unsigned char*) 0, len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
 
47
    :Field_str((unsigned char*) 0, len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
48
48
                   NONE, field_name_arg, cs),
49
49
    packlength(4)
50
50
  {
52
52
  }
53
53
  Field_blob(uint32_t len_arg, bool maybe_null_arg, const char *field_name_arg,
54
54
             const CHARSET_INFO * const cs, bool set_packlength)
55
 
    :Field_longstr((unsigned char*) 0,len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
 
55
    :Field_str((unsigned char*) 0,len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
56
56
                   NONE, field_name_arg, cs)
57
57
  {
58
58
    flags|= BLOB_FLAG;
66
66
    }
67
67
  }
68
68
  Field_blob(uint32_t packlength_arg)
69
 
    :Field_longstr((unsigned char*) 0, 0, (unsigned char*) "", 0, NONE, "temp", system_charset_info),
 
69
    :Field_str((unsigned char*) 0, 0, (unsigned char*) "", 0, NONE, "temp", system_charset_info),
70
70
    packlength(packlength_arg) {}
71
71
  enum_field_types type() const { return DRIZZLE_TYPE_BLOB;}
72
72
  enum ha_base_keytype key_type() const