Commit 088f59a9 authored by unknown's avatar unknown

Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.0

into  xiphis.org:/opt2/tmp/autopush/mysql-5.0-fixbuild

parents 0cd51b1a 600f1155
...@@ -6412,7 +6412,7 @@ void Field_varstring::sql_type(String &res) const ...@@ -6412,7 +6412,7 @@ void Field_varstring::sql_type(String &res) const
} }
uint Field_varstring::data_length(const char *from) uint32 Field_varstring::data_length(const char *from)
{ {
return length_bytes == 1 ? (uint) (uchar) *ptr : uint2korr(ptr); return length_bytes == 1 ? (uint) (uchar) *ptr : uint2korr(ptr);
} }
......
...@@ -1107,7 +1107,7 @@ class Field_varstring :public Field_longstr { ...@@ -1107,7 +1107,7 @@ class Field_varstring :public Field_longstr {
int key_cmp(const byte *str, uint length); int key_cmp(const byte *str, uint length);
uint packed_col_length(const char *to, uint length); uint packed_col_length(const char *to, uint length);
uint max_packed_col_length(uint max_length); uint max_packed_col_length(uint max_length);
uint data_length(const char *from); uint32 data_length(const char *from);
uint size_of() const { return sizeof(*this); } uint size_of() const { return sizeof(*this); }
enum_field_types real_type() const { return MYSQL_TYPE_VARCHAR; } enum_field_types real_type() const { return MYSQL_TYPE_VARCHAR; }
bool has_charset(void) const bool has_charset(void) const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment