summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <kroki/tomash@moonlight.intranet>2006-07-13 17:21:44 +0400
committerunknown <kroki/tomash@moonlight.intranet>2006-07-13 17:21:44 +0400
commit51dddb3ad18b78d2f5f3ca25623bfb5dc60c5341 (patch)
treec5fda6d5e82335ce71de89fc8afa361c9c4f4323 /sql/sql_parse.cc
parentf60d9a3eeed1c7c6a3249ea3e629ce7b104a420b (diff)
parent06bf59ad3381522f4f5ba272a478271c741f0049 (diff)
downloadmariadb-git-51dddb3ad18b78d2f5f3ca25623bfb5dc60c5341.tar.gz
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug18630 sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_trigger.cc: Auto merged
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 6dbd6623264..b868cd31eac 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -4405,9 +4405,6 @@ end_with_restore_list:
}
else
{
-#ifndef NO_EMBEDDED_ACCESS_CHECKS
- Security_context *save_ctx;
-#endif
ha_rows select_limit;
/* bits that should be cleared in thd->server_status */
uint bits_to_be_cleared= 0;
@@ -4449,21 +4446,11 @@ end_with_restore_list:
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if (check_routine_access(thd, EXECUTE_ACL,
- sp->m_db.str, sp->m_name.str, TRUE, 0) ||
- sp_change_security_context(thd, sp, &save_ctx))
+ sp->m_db.str, sp->m_name.str, TRUE, FALSE))
{
thd->net.no_send_ok= nsok;
goto error;
}
- if (save_ctx &&
- check_routine_access(thd, EXECUTE_ACL,
- sp->m_db.str, sp->m_name.str, TRUE, 0))
- {
- thd->net.no_send_ok= nsok;
- sp_restore_security_context(thd, save_ctx);
- goto error;
- }
-
#endif
select_limit= thd->variables.select_limit;
thd->variables.select_limit= HA_POS_ERROR;
@@ -4487,9 +4474,6 @@ end_with_restore_list:
thd->total_warn_count= 0;
thd->variables.select_limit= select_limit;
-#ifndef NO_EMBEDDED_ACCESS_CHECKS
- sp_restore_security_context(thd, save_ctx);
-#endif
thd->net.no_send_ok= nsok;
thd->server_status&= ~bits_to_be_cleared;