summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index caaff4d1613..801b77ffcce 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1558,7 +1558,7 @@ longlong Item_func_elt::val_int()
if ((tmp=(uint) item->val_int()) == 0 || tmp > arg_count)
return 0;
- int result= args[tmp-1]->val_int();
+ longlong result= args[tmp-1]->val_int();
null_value= args[tmp-1]->null_value;
return result;
}