diff options
author | unknown <andrey@lmy004.> | 2005-12-07 19:26:44 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2005-12-07 19:26:44 +0100 |
commit | bc3708a5b9fd72a1fb5e066b3084fec809138558 (patch) | |
tree | 24fd545951265c7b420f45e4e6d69101c3da295b /sql/event.h | |
parent | a581a4a1c590aaf333e349ed4f6413e200eadd69 (diff) | |
download | mariadb-git-bc3708a5b9fd72a1fb5e066b3084fec809138558.tar.gz |
WL#1034 ongoing updates after review
sql/event.cc:
-my_error() as close as possible to the place where the error
occurs.
-a thought how to replicate events
-use close_thread_tables() in some cases and for others rely on
this call being done in sql_parse.cc::do_command()
sql/event.h:
remove redundant defines
sql/event_executor.cc:
- reenable the compilation again
- don't backup the open_tables_state, it's not needed
sql/event_timed.cc:
- inline a bit
- comment added
sql/mysqld.cc:
- start mysqld with --event-scheduler=0 by default
sql/share/errmsg.txt:
3 new messages
sql/sql_parse.cc:
remove now obsolete error checking - the errors are reported
as closer as possible to the place where they are detected
sql/sql_yacc.yy:
add WARNING message. fix a bug that was corrupting
thd->client_capabilites ->
select count(*) from mysql.event
was reporting : "Unknown table test.event"!!!
Using temporal variable is nice but IMO quite error-prone.
Diffstat (limited to 'sql/event.h')
-rw-r--r-- | sql/event.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/event.h b/sql/event.h index 6c7edbcf3fc..eae38472498 100644 --- a/sql/event.h +++ b/sql/event.h @@ -40,17 +40,6 @@ extern ulong opt_event_executor; #define EVENT_EXEC_NO_MORE (1L << 0) #define EVENT_NOT_USED (1L << 1) -#define SP_OK 0 -#define SP_KEY_NOT_FOUND -1 -#define SP_OPEN_TABLE_FAILED -2 -#define SP_WRITE_ROW_FAILED -3 -#define SP_DELETE_ROW_FAILED -4 -#define SP_GET_FIELD_FAILED -5 -#define SP_PARSE_ERROR -6 -#define SP_INTERNAL_ERROR -7 -#define SP_NO_DB_ERROR -8 -#define SP_BAD_IDENTIFIER -9 -#define SP_BODY_TOO_LONG -10 extern ulong opt_event_executor; |