summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-09-21 17:28:25 +0300
committermonty@mysql.com <>2005-09-21 17:28:25 +0300
commit1bd2beff5a1b870d3757fdace1dd82d8435ca484 (patch)
treedc5185f716f92c9a656e6f55c4d26be78d04c891 /sql/item.h
parent21636f1ccb4783f9a2b3e99b7bd29cd33ebef466 (diff)
downloadmariadb-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.h1
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() {}