summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/narttu.mysql.fi>2007-01-30 13:52:26 +0200
committerunknown <monty@mysql.com/narttu.mysql.fi>2007-01-30 13:52:26 +0200
commit6e501e6548f15d3450ffb122ba1e683f40a4c917 (patch)
tree62763e5b2b8fc594a6350438d3424ff872a91c85 /sql/sql_parse.cc
parent721e412854cc701b9a23c0a3ca2b84c936877bc2 (diff)
downloadmariadb-git-6e501e6548f15d3450ffb122ba1e683f40a4c917.tar.gz
Fixed problems detected by pushbuild
mysql-test/t/log_state.test: Move disconnect last to avoid sporadic failures in test because 'Quit' command appeared in general log plugin/daemon_example/daemon_example.c: Define __attribute__ to fix compiler error with not gcc compilers sql-common/client.c: Fixed spelling error sql/sql_parse.cc: Added comment
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 3f734dbbdac..09e04e6a2f9 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -413,7 +413,11 @@ int check_user(THD *thd, enum enum_server_command command,
}
}
- /* Why logging is performed before all checks've passed? */
+ /*
+ Log the command before authentication checks, so that the user can
+ check the log for the tried login tried and also to detect
+ break-in attempts.
+ */
general_log_print(thd, command,
(thd->main_security_ctx.priv_user ==
thd->main_security_ctx.user ?