diff options
author | monty@mysql.com <> | 2005-09-21 17:28:25 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-09-21 17:28:25 +0300 |
commit | 1bd2beff5a1b870d3757fdace1dd82d8435ca484 (patch) | |
tree | dc5185f716f92c9a656e6f55c4d26be78d04c891 /sql/item.h | |
parent | 21636f1ccb4783f9a2b3e99b7bd29cd33ebef466 (diff) | |
download | mariadb-git-1bd2beff5a1b870d3757fdace1dd82d8435ca484.tar.gz |
Ensure that hex strings are used as integers in cast(... signed/unsigned)
This fixes the new report for bug #7036
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h index e683cda5786..b1aed733101 100644 --- a/sql/item.h +++ b/sql/item.h @@ -842,6 +842,7 @@ public: String *val_str(String*) { DBUG_ASSERT(fixed == 1); return &str_value; } int save_in_field(Field *field, bool no_conversions); enum Item_result result_type () const { return STRING_RESULT; } + enum Item_result cast_to_int_type() const { return INT_RESULT; } enum_field_types field_type() const { return MYSQL_TYPE_STRING; } // to prevent drop fixed flag (no need parent cleanup call) void cleanup() {} |