From 739ea377bd702a6438d1491222e8ec671ad0fbf3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 28 Jun 2006 16:02:20 +0200 Subject: after merge fix --- sql/events.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') 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, -- cgit v1.2.1