summaryrefslogtreecommitdiff
path: root/sql/event.cc
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-02-16 13:11:16 +0100
committerunknown <andrey@lmy004.>2006-02-16 13:11:16 +0100
commitc80a0d71715ad32bd4a0b81e82c4418b47d202a8 (patch)
tree9430b94a5f527228240c1f123d5a0b4ee2a48352 /sql/event.cc
parent7141bfd049bc2729262550039e34aea06b5759a5 (diff)
downloadmariadb-git-c80a0d71715ad32bd4a0b81e82c4418b47d202a8.tar.gz
fix bug in show events which shows
| INTERVAL_VALUE | INTERVAL_FIELD | | 20 | 20 MINUTE | the second one should be without the value mysql-test/r/events.result: update test result to be as they should be sql/event_timed.cc: manually append the name of the interval because it's no more appended by reconstruct_value
Diffstat (limited to 'sql/event.cc')
-rw-r--r--sql/event.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/sql/event.cc b/sql/event.cc
index d9e71a263b8..93f7e9c41d0 100644
--- a/sql/event.cc
+++ b/sql/event.cc
@@ -457,11 +457,7 @@ common_1_lev_code:
buf->append(tmp_buff, (uint) (end- tmp_buff));
if (close_quote)
buf->append('\'');
-
- buf->append(' ');
- LEX_STRING *ival= &interval_type_to_name[interval];
- buf->append(ival->str, ival->length);
-
+
return 0;
}
@@ -1092,6 +1088,7 @@ evex_remove_from_cache(LEX_STRING *db, LEX_STRING *name, bool use_lock,
{
//ToDo : Add definer to the tuple (db, name) to become triple
uint i;
+ int ret= 0;
DBUG_ENTER("evex_remove_from_cache");
/*
@@ -1126,6 +1123,7 @@ evex_remove_from_cache(LEX_STRING *db, LEX_STRING *name, bool use_lock,
DBUG_PRINT("evex_remove_from_cache", ("delete from queue"));
evex_queue_delete_element(&EVEX_EQ_NAME, i);
// ok, we have cleaned
+ ret= 0;
goto done;
}
}
@@ -1134,7 +1132,7 @@ done:
if (use_lock)
VOID(pthread_mutex_unlock(&LOCK_event_arrays));
- DBUG_RETURN(0);
+ DBUG_RETURN(ret);
}