summaryrefslogtreecommitdiff
path: root/sql/sql_yacc_ora.yy
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-08-27 23:01:12 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-09-01 14:04:24 +0300
commita3e49c0d36c0347e9dee43f9996ca7c407836a51 (patch)
treebf0249eb01f0db04ea400df516b8804bb1ab4ad9 /sql/sql_yacc_ora.yy
parent396da1a70548f80ecf781cf352b0d4a5740c54f6 (diff)
downloadmariadb-git-a3e49c0d36c0347e9dee43f9996ca7c407836a51.tar.gz
MDEV-18501 Partition pruning doesn't work for historical queries (cleanup)
Cleanup removes useless allocation.
Diffstat (limited to 'sql/sql_yacc_ora.yy')
-rw-r--r--sql/sql_yacc_ora.yy8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_yacc_ora.yy b/sql/sql_yacc_ora.yy
index 28d3d1bf90b..b31f2a0f890 100644
--- a/sql/sql_yacc_ora.yy
+++ b/sql/sql_yacc_ora.yy
@@ -5387,10 +5387,10 @@ part_column_list:
part_func:
- '(' remember_name part_func_expr remember_end ')'
+ '(' part_func_expr ')'
{
partition_info *part_info= Lex->part_info;
- if (unlikely(part_info->set_part_expr(thd, $2 + 1, $3, $4, FALSE)))
+ if (unlikely(part_info->set_part_expr(thd, $2, FALSE)))
MYSQL_YYABORT;
part_info->num_columns= 1;
part_info->column_list= FALSE;
@@ -5398,9 +5398,9 @@ part_func:
;
sub_part_func:
- '(' remember_name part_func_expr remember_end ')'
+ '(' part_func_expr ')'
{
- if (unlikely(Lex->part_info->set_part_expr(thd, $2 + 1, $3, $4, TRUE)))
+ if (unlikely(Lex->part_info->set_part_expr(thd, $2, TRUE)))
MYSQL_YYABORT;
}
;