summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authormhansson@dl145s.mysql.com <>2007-05-21 10:27:33 +0200
committermhansson@dl145s.mysql.com <>2007-05-21 10:27:33 +0200
commit6530f6806a1393132fc56cd2c43e94cd70a72434 (patch)
treea62ec66f999f1c490922cac311cd09db6534054b /sql/field.h
parentbb089cea3852546e37d6a241b35f9223759b88c1 (diff)
downloadmariadb-git-6530f6806a1393132fc56cd2c43e94cd70a72434.tar.gz
bug#23856
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 47f61c1fe8b..94c5d94def4 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1108,6 +1108,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,