diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-03-01 12:42:33 +0400 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-03-01 12:42:33 +0400 |
commit | ee9930bfa4c6cbdd15438f22dccc3a4a2c232d36 (patch) | |
tree | 9341a0bb9aafeec9fff5f0199744fad3b98761dc /sql | |
parent | 0466a9094494f3b49d7308b614131894d30ba710 (diff) | |
download | mariadb-git-ee9930bfa4c6cbdd15438f22dccc3a4a2c232d36.tar.gz |
Fix for bug#14363 Partitions: failure if create in stored procedure
store copy of partition function string
mysql-test/r/partition.result:
Fix for bug#14363 Partitions: failure if create in stored procedure
test case
mysql-test/t/partition.test:
Fix for bug#14363 Partitions: failure if create in stored procedure
test case
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_yacc.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 4f11d798d91..0cdf859c7a1 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3489,7 +3489,7 @@ part_func: uint expr_len= (uint)($4 - $2) - 1; lex->part_info->list_of_part_fields= FALSE; lex->part_info->part_expr= $3; - lex->part_info->part_func_string= $2+1; + lex->part_info->part_func_string= (char* ) sql_memdup($2+1, expr_len); lex->part_info->part_func_len= expr_len; } ; @@ -3501,7 +3501,7 @@ sub_part_func: uint expr_len= (uint)($4 - $2) - 1; lex->part_info->list_of_subpart_fields= FALSE; lex->part_info->subpart_expr= $3; - lex->part_info->subpart_func_string= $2+1; + lex->part_info->subpart_func_string= (char* ) sql_memdup($2+1, expr_len); lex->part_info->subpart_func_len= expr_len; } ; |