summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-05-16 10:16:09 +0400
committerAlexander Barkov <bar@mariadb.com>2019-05-16 10:16:32 +0400
commitb7d22a843e36cd5b8695f8ac2b92789d1cf50e4f (patch)
treedf7f8b4d747ecec69424e24fe989aeda0df16b44 /sql/sql_yacc.yy
parente0e805759f5403352debb9a2c97a4c0ee8f3c10f (diff)
downloadmariadb-git-b7d22a843e36cd5b8695f8ac2b92789d1cf50e4f.tar.gz
MDEV-16872 Add CAST(expr AS FLOAT)
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 91678afc81c..f89984d848f 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -11728,6 +11728,7 @@ cast_type_numeric:
| UNSIGNED { $$.set(&type_handler_ulonglong); }
| UNSIGNED INT_SYM { $$.set(&type_handler_ulonglong); }
| DECIMAL_SYM float_options { $$.set(&type_handler_newdecimal, $2); }
+ | FLOAT_SYM { $$.set(&type_handler_float); }
| DOUBLE_SYM opt_precision { $$.set(&type_handler_double, $2); }
;