summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.intranet.mysql.r18.ru>2006-11-03 10:19:23 +0400
committerunknown <bar@bar.intranet.mysql.r18.ru>2006-11-03 10:19:23 +0400
commit1a4745a751713e83b27df276c75317a62d0d608b (patch)
tree0916af4157381d2098e6a43e9dec0f755b07f5fc /sql/log.cc
parentbb4246501f5c5f88c6638ec9868e3e8a5a55c97b (diff)
parentd269272308147f326cec1fb15ba71f960c4bc53a (diff)
downloadmariadb-git-1a4745a751713e83b27df276c75317a62d0d608b.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl
into mysql.com:/usr/home/bar/mysql-5.1-rpl
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index a1ed9bd6df3..9ca71fa74d0 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -386,6 +386,18 @@ bool Log_to_csv_event_handler::
{
TABLE *table= general_log.table;
+ /*
+ "INSERT INTO general_log" can generate warning sometimes.
+ Let's reset warnings from previous queries,
+ otherwise warning list can grow too much,
+ so thd->query gets spoiled as some point in time,
+ and mysql_parse() receives a broken query.
+ QQ: this problem needs to be studied in more details.
+ Probably it's better to suppress warnings in logging INSERTs at all.
+ Comment this line and run "cast.test" to see what's happening:
+ */
+ mysql_reset_errors(table->in_use, 1);
+
/* below should never happen */
if (unlikely(!logger.is_log_tables_initialized))
return FALSE;