summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-03-01 16:27:57 +0100
committerunknown <andrey@lmy004.>2006-03-01 16:27:57 +0100
commit91d827eae3ae73a609f7c04fdbdd575236f82f70 (patch)
treed070d147f614121e3aed89837a2e01877e412b0e /sql/sp_head.h
parentaf47b36d7151ffbc7e1f7c144c93ef0869635a1d (diff)
downloadmariadb-git-91d827eae3ae73a609f7c04fdbdd575236f82f70.tar.gz
fix for bug #16413 (Events: statements don't appear in the general query log)
WL#1034 mysql-test/t/events_logs_tests-master.opt: Rename: mysql-test/t/events_slow_query-master.opt -> mysql-test/t/events_logs_tests-master.opt sql/event_timed.cc: ask the anonymous SP to log general statements sql/sp_head.cc: save the OPTION_LOG_OFF and restore it after execution sql/sp_head.h: add a new flag for general log mysql-test/r/events_logs_tests.result: update result file mysql-test/t/events_logs_tests.test: add test for general log
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 83228147430..472e5343991 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -125,7 +125,8 @@ public:
HAS_SET_AUTOCOMMIT_STMT= 64,// Is set if a procedure with 'set autocommit'
/* Is set if a procedure with COMMIT (implicit or explicit) | ROLLBACK */
HAS_COMMIT_OR_ROLLBACK= 128,
- LOG_SLOW_STATEMENTS= 256
+ LOG_SLOW_STATEMENTS= 256, // Used by events
+ LOG_GENERAL_LOG= 512 // Used by events
};
/* TYPE_ENUM_FUNCTION, TYPE_ENUM_PROCEDURE or TYPE_ENUM_TRIGGER */