summaryrefslogtreecommitdiff
path: root/sql/sql_do.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-09-25 21:33:50 +0400
committerAlexander Barkov <bar@mariadb.org>2015-09-25 21:33:50 +0400
commit30711c6650fc7e2f166f29d0bc59eeab64dadb3e (patch)
treebd9a209f1e339c73a2d23c22c9c078ea992ebd08 /sql/sql_do.cc
parent26e4403f649839e82dd26f7a6b31165063eb2871 (diff)
downloadmariadb-git-30711c6650fc7e2f166f29d0bc59eeab64dadb3e.tar.gz
MDEV-8806 Numeric CAST produce different warnings for strings literals vs functions
Diffstat (limited to 'sql/sql_do.cc')
-rw-r--r--sql/sql_do.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_do.cc b/sql/sql_do.cc
index 468b1bc33da..9e58031f6a4 100644
--- a/sql/sql_do.cc
+++ b/sql/sql_do.cc
@@ -32,7 +32,7 @@ bool mysql_do(THD *thd, List<Item> &values)
if (setup_fields(thd, 0, values, MARK_COLUMNS_NONE, 0, 0))
DBUG_RETURN(TRUE);
while ((value = li++))
- value->val_int();
+ (void) value->is_null();
free_underlaid_joins(thd, &thd->lex->select_lex);
if (thd->is_error())