Commit 9fa66ba4 authored by unknown's avatar unknown

field.cc, field.h:

  i5 compatibility


sql/field.h:
  i5 compatibility
sql/field.cc:
  i5 compatibility
parent e90b0c6e
...@@ -6270,6 +6270,7 @@ Field *Field_string::new_field(MEM_ROOT *root, struct st_table *new_table, ...@@ -6270,6 +6270,7 @@ Field *Field_string::new_field(MEM_ROOT *root, struct st_table *new_table,
is 2. is 2.
****************************************************************************/ ****************************************************************************/
const uint Field_varstring::MAX_SIZE= UINT_MAX16;
int Field_varstring::store(const char *from,uint length,CHARSET_INFO *cs) int Field_varstring::store(const char *from,uint length,CHARSET_INFO *cs)
{ {
......
...@@ -1116,7 +1116,7 @@ class Field_varstring :public Field_longstr { ...@@ -1116,7 +1116,7 @@ class Field_varstring :public Field_longstr {
The maximum space available in a Field_varstring, in bytes. See The maximum space available in a Field_varstring, in bytes. See
length_bytes. length_bytes.
*/ */
static const uint MAX_SIZE= UINT_MAX16; static const uint MAX_SIZE;
/* Store number of bytes used to store length (1 or 2) */ /* Store number of bytes used to store length (1 or 2) */
uint32 length_bytes; uint32 length_bytes;
Field_varstring(char *ptr_arg, Field_varstring(char *ptr_arg,
......
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