summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorandrey@lmy004. <>2006-06-28 16:02:20 +0200
committerandrey@lmy004. <>2006-06-28 16:02:20 +0200
commite5e8713c604fe70f431d0753e4b05dd7bd47a411 (patch)
treec63c981642826f7e195181688ca062dcdba15210 /sql
parentf92454082ad169376eca34be4f1c8aac2fdba1f7 (diff)
downloadmariadb-git-e5e8713c604fe70f431d0753e4b05dd7bd47a411.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,