summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index 18e44f1d9d4..7f4638567b4 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1339,6 +1339,8 @@ public:
virtual uint max_packed_col_length(uint max_length)
{ return max_length;}
+ virtual bool is_packable() const { return false; }
+
uint offset(uchar *record) const
{
return (uint) (ptr - record);
@@ -1827,6 +1829,7 @@ public:
bool can_optimize_range(const Item_bool_func *cond,
const Item *item,
bool is_eq_func) const;
+ bool is_packable() const override { return true; }
};
/* base class for float and double and decimal (old one) */