Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
7bea53e6
Commit
7bea53e6
authored
19 years ago
by
unknown
Browse files
Options
Download
Plain Diff
Merge mysql.com:/usr/local/bk/mysql-5.0
into mysql.com:/usr/home/pem/bug13616/mysql-5.0
parents
0aedfc6e
fcc0af9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/sp_head.cc
sql/sp_head.cc
+3
-1
No files found.
sql/sp_head.cc
View file @
7bea53e6
...
...
@@ -1051,8 +1051,10 @@ int sp_head::execute(THD *thd)
original thd->db will then have been freed */
if
(
dbchanged
)
{
/* No access check when changing back to where we came from.
(It would generate an error from mysql_change_db() when olddb=="") */
if
(
!
thd
->
killed
)
ret
=
mysql_change_db
(
thd
,
olddb
,
0
);
ret
=
mysql_change_db
(
thd
,
olddb
,
1
);
}
m_flags
&=
~
IS_INVOKED
;
DBUG_RETURN
(
ret
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment