summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-06-28 16:02:20 +0200
committerunknown <andrey@lmy004.>2006-06-28 16:02:20 +0200
commit739ea377bd702a6438d1491222e8ec671ad0fbf3 (patch)
treec63c981642826f7e195181688ca062dcdba15210 /sql
parent98211beaee1cffd0ecf28a2157fbb0de3692cc3e (diff)
downloadmariadb-git-739ea377bd702a6438d1491222e8ec671ad0fbf3.tar.gz
after merge fix
Diffstat (limited to 'sql')
-rw-r--r--sql/events.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/events.cc b/sql/events.cc
index cd4d3dff244..5fe5f019c87 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -628,7 +628,7 @@ Events::fill_schema_events(THD *thd, TABLE_LIST *tables, COND * /* cond */)
If it's SHOW EVENTS then thd->lex->select_lex.db is guaranteed not to
be NULL. Let's do an assert anyway.
*/
- if (thd->lex->orig_sql_command == SQLCOM_SHOW_EVENTS)
+ if (thd->lex->sql_command == SQLCOM_SHOW_EVENTS)
{
DBUG_ASSERT(thd->lex->select_lex.db);
if (check_access(thd, EVENT_ACL, thd->lex->select_lex.db, 0, 0, 0,