summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authormhansson@dl145s.mysql.com <>2007-05-21 14:28:31 +0200
committermhansson@dl145s.mysql.com <>2007-05-21 14:28:31 +0200
commit2abc880b82a15c340678f576ff913314054d231e (patch)
treeae312ba026c0dea7c15761078a939369c9d4d299 /sql/field.h
parentd12e6f7b0bc7fdae82cf8742010f53ff53c6b014 (diff)
parent6530f6806a1393132fc56cd2c43e94cd70a72434 (diff)
downloadmariadb-git-2abc880b82a15c340678f576ff913314054d231e.tar.gz
Merge dl145s.mysql.com:/users/mhansson/mysql/push/bug23856/my50-bug23856
into dl145s.mysql.com:/users/mhansson/mysql/push/bug23856/my51-bug23856
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index 2c2640a8262..da7bc690929 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1171,6 +1171,11 @@ public:
class Field_varstring :public Field_longstr {
public:
+ /*
+ The maximum space available in a Field_varstring, in bytes. See
+ length_bytes.
+ */
+ static const int MAX_SIZE= UINT_MAX16;
/* Store number of bytes used to store length (1 or 2) */
uint32 length_bytes;
Field_varstring(char *ptr_arg,