summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorunknown <jani@linux-th5m.site>2007-05-24 19:47:58 +0300
committerunknown <jani@linux-th5m.site>2007-05-24 19:47:58 +0300
commit635728a6e69f95c0a4008fb4b65992d58486bc51 (patch)
tree2958d280359513f6d2b3ce1f9b1dfd0f818bfb98 /sql/sql_yacc.yy
parent6356f5631c1b6dab40b747abe54797f1779aef80 (diff)
downloadmariadb-git-635728a6e69f95c0a4008fb4b65992d58486bc51.tar.gz
Merged from main 5.1
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 113fb33fb9b..5c21adf3c8f 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -10190,7 +10190,8 @@ option_type_value:
else
qbuff.length= lip->tok_end - sp->m_tmp_query;
- if (!(qbuff.str= alloc_root(thd->mem_root, qbuff.length + 5)))
+ if (!(qbuff.str= (char*) alloc_root(thd->mem_root,
+ qbuff.length + 5)))
MYSQL_YYABORT;
strmake(strmake(qbuff.str, "SET ", 4), sp->m_tmp_query,