summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index ca69af39f62..157c48393ba 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1242,6 +1242,8 @@ public:
The following class is used to optimize comparing of date and bigint columns
We need to save the original item, to be able to set the field to the
original value in 'opt_range'.
+ An instance of Item_int_with_ref may refer to a signed or an unsigned
+ integer.
*/
class Item_int_with_ref :public Item_int
@@ -1256,6 +1258,11 @@ public:
{
return ref->save_in_field(field, no_conversions);
}
+ Item *new_item()
+ {
+ return (ref->unsigned_flag)? new Item_uint(ref->name, ref->max_length) :
+ new Item_int(ref->name, ref->max_length);
+ }
};