From: Date: November 11 2005 5:06pm Subject: bk commit into 5.0 tree (SergeyV:1.1957) BUG#14569 List-Archive: http://lists.mysql.com/internals/32183 X-Bug: 14569 Message-Id: <200511111606.jABG6aFD001869@selena.creware.com> Below is the list of changes that have just been committed into a local 5.0 repository of sergeyv. When sergeyv does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1957 05/11/11 19:06:18 SergeyV@selena. +1 -0 Fixes bug #14569. In addition to check current db of not being NULL value it is added a check of not being empty value. When modifying SP with Admin application on win32 it does not pass curent database so sp is stored with db=null which causes a crash later on show procedure status; sql/sql_parse.cc 1.510 05/11/11 19:06:09 SergeyV@selena. +1 -1 Fixes bug #14569. In addition to check current db of not being NULL value it is added a check of not being empty value. When modifying SP with Admin application on win32 it does not pass curent database so sp is stored with db=null which causes a crash later on show procedure status; # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: SergeyV # Host: selena. # Root: H:/MYSQL/src/#14569-mysql-5.0 --- 1.509/sql/sql_parse.cc 2005-11-04 12:54:45 +03:00 +++ 1.510/sql/sql_parse.cc 2005-11-11 19:06:09 +03:00 @@ -4099,7 +4099,7 @@ if (!lex->sphead->m_db.str || !lex->sphead->m_db.str[0]) { - if (! thd->db) + if (!thd->db || thd->db[0] == 0) { my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0)); delete lex->sphead;