diff options
author | unknown <anozdrin/alik@ibm.> | 2007-04-06 20:21:30 +0400 |
---|---|---|
committer | unknown <anozdrin/alik@ibm.> | 2007-04-06 20:21:30 +0400 |
commit | 52b86a6e0a9be6f3c41f24b9c30d2b6f885ad94f (patch) | |
tree | 8af8f15b6e48cd56805d8776a776b354860d4f04 /sql/sp_head.cc | |
parent | 9bc5135f81f1ab34175b4c70f660c2ad15fa4711 (diff) | |
download | mariadb-git-52b86a6e0a9be6f3c41f24b9c30d2b6f885ad94f.tar.gz |
Polishing: note added.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 1f44fa6639c..21225d82188 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -954,6 +954,12 @@ sp_head::execute(THD *thd) m_first_instance->m_last_cached_sp == this) || (m_recursion_level + 1 == m_next_cached_sp->m_recursion_level)); + /* + NOTE: The SQL Standard does not specify the context that should be + preserved for stored routines. However, at SAP/Walldorf meeting it was + decided that current database should be preserved. + */ + if (m_db.length && (err_status= sp_use_new_db(thd, m_db, &old_db, 0, &dbchanged))) goto done; |