summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorSergeyV@selena. <>2005-11-11 21:01:48 +0300
committerSergeyV@selena. <>2005-11-11 21:01:48 +0300
commitdbb29d11ee9afd149cc8e1e18671aa8206c96b1c (patch)
tree07cb5eea931e8ec0d12a702586118a502ff860e3 /sql/sql_select.h
parentd2042caca68c29b14785069b7bb1c843379b142e (diff)
downloadmariadb-git-dbb29d11ee9afd149cc8e1e18671aa8206c96b1c.tar.gz
Fixes bug #14569. When no db is selected as current and we do create procedure db.sp()...
we changing current db temporarily and restore it when sp is created. however thd->db in this case becomes empty string rather than NULL and so all checks of thd->db == NULL will be false. So if after this we'll issue create procedure sp2()... without specifying db it will succeed and create sp with db=NULL, which causes mysqldto crash on show procedure status statement. This patch fixes the problem.
Diffstat (limited to 'sql/sql_select.h')
0 files changed, 0 insertions, 0 deletions