summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-09-21 17:28:25 +0300
committerunknown <monty@mysql.com>2005-09-21 17:28:25 +0300
commit1d16fa5d866c3875bb8fab818115b15c3cda93f5 (patch)
treedc5185f716f92c9a656e6f55c4d26be78d04c891 /sql
parent2a5505c7f6e0e41dfe0d85c2d9dd2f5e6eebf222 (diff)
downloadmariadb-git-1d16fa5d866c3875bb8fab818115b15c3cda93f5.tar.gz
Ensure that hex strings are used as integers in cast(... signed/unsigned)
This fixes the new report for bug #7036 mysql-test/t/cast.test: Added test for cast(hex-value to signed/unsigned) sql/item.h: Ensure that hex strings are used as integers in cast(... signed/unsigned)
Diffstat (limited to 'sql')
-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() {}