mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Increase allowed size of stored procedure bodies to 4GB, and
produce a sensible error when that limit is exceeded. (Bug #11602) client/mysqltest.c: Increase query buffer size, and explain why mysql-test/r/system_mysql_db.result: Update results scripts/mysql_create_system_tables.sh: Increase size of proc.body scripts/mysql_fix_privilege_tables.sql: Increase size of proc.body sql/share/errmsg.txt: Add error for SP routines that are too long sql/sp.cc: Raise an error when the SP body is too long. sql/sp.h: Add error for SP body being too long. sql/sql_parse.cc: Handle SP_BODY_TOO_LONG error. mysql-test/r/sp-big.result: New BitKeeper file ``mysql-test/r/sp-big.result'' mysql-test/t/sp-big.test: New BitKeeper file ``mysql-test/t/sp-big.test''
This commit is contained in:
parent
51308e2327
commit
eb25e83ee4
10 changed files with 68 additions and 4 deletions
|
|
@ -503,6 +503,11 @@ db_create_routine(THD *thd, int type, sp_head *sp)
|
|||
ret= SP_BAD_IDENTIFIER;
|
||||
goto done;
|
||||
}
|
||||
if (sp->m_body.length > table->field[MYSQL_PROC_FIELD_BODY]->field_length)
|
||||
{
|
||||
ret= SP_BODY_TOO_LONG;
|
||||
goto done;
|
||||
}
|
||||
table->field[MYSQL_PROC_FIELD_DB]->
|
||||
store(sp->m_db.str, sp->m_db.length, system_charset_info);
|
||||
table->field[MYSQL_PROC_FIELD_NAME]->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue