summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authormonty@mysql.com <>2003-11-21 00:17:46 +0200
committermonty@mysql.com <>2003-11-21 00:17:46 +0200
commit32a62d506916c2f1ee34cb4494a10b66d1b4be2a (patch)
treecc5b75d68dbc553175309599add32578e09f425d /sql/item.cc
parentb01fcb4e1438dcc1f9a31bcab30b98b578d1704a (diff)
parent41eda1c949671be87631255df355530da4efb745 (diff)
downloadmariadb-git-32a62d506916c2f1ee34cb4494a10b66d1b4be2a.tar.gz
Merge with 4.0 to revert patch for BIGINT assignment to double
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/sql/item.cc b/sql/item.cc
index d5401b85755..4cd52c54097 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1192,17 +1192,11 @@ int Item_string::save_in_field(Field *field, bool no_conversions)
int Item_uint::save_in_field(Field *field, bool no_conversions)
{
- longlong nr= val_int();
- int res;
-
- if (null_value)
- return set_field_to_null(field);
- field->set_notnull();
- if (nr < 0)
- res= field->store(ulonglong2double(nr);
- else
- res= field->store(nr);
- return res ? -1 : 0;
+ /*
+ TODO: To be fixed when wen have a
+ field->store(longlong, unsigned_flag) method
+ */
+ Item_int::save_in_field(field, no_conversions);
}