diff options
author | unknown <anozdrin/alik@ibm.> | 2007-07-25 18:38:52 +0400 |
---|---|---|
committer | unknown <anozdrin/alik@ibm.> | 2007-07-25 18:38:52 +0400 |
commit | 48e879f9ac3d57b6c931c36a7d590e16229ae1a4 (patch) | |
tree | 3857acc7a31d7097201b91c3aa693d9ae5aeb386 /sql/sp.cc | |
parent | cf81182cd038f9a0a038019629a67fbd386cb2c2 (diff) | |
download | mariadb-git-48e879f9ac3d57b6c931c36a7d590e16229ae1a4.tar.gz |
Allow mysql.proc to have extra (unknown) fields.
This allows 5.0 to work with 5.1 databases.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index c0e7d5e2271..75d6fa4618f 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -273,7 +273,7 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp) if ((ret= db_find_routine_aux(thd, type, name, table)) != SP_OK) goto done; - if (table->s->fields != MYSQL_PROC_FIELD_COUNT) + if (table->s->fields < MYSQL_PROC_FIELD_COUNT) { ret= SP_GET_FIELD_FAILED; goto done; @@ -523,7 +523,7 @@ db_create_routine(THD *thd, int type, sp_head *sp) strxmov(definer, thd->lex->definer->user.str, "@", thd->lex->definer->host.str, NullS); - if (table->s->fields != MYSQL_PROC_FIELD_COUNT) + if (table->s->fields < MYSQL_PROC_FIELD_COUNT) { ret= SP_GET_FIELD_FAILED; goto done; |