From 1440391ad5810b8279450f8d72f6a8f8d18e67e8 Mon Sep 17 00:00:00 2001 From: yoku0825 Date: Tue, 24 May 2016 13:27:07 +0900 Subject: [PATCH] Fix Bug#81557 http://bugs.mysql.com/bug.php?id=81557 --- lib/mysql/fabric/error_log.py | 2 +- lib/mysql/fabric/handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mysql/fabric/error_log.py b/lib/mysql/fabric/error_log.py index 2bd855e..b533254 100644 --- a/lib/mysql/fabric/error_log.py +++ b/lib/mysql/fabric/error_log.py @@ -65,7 +65,7 @@ class ErrorLog(_persistence.Persistable): "CREATE EVENT prune_error_log " "ON SCHEDULE EVERY %s SECOND " "DO DELETE FROM error_log WHERE " - "TIMEDIFF(UTC_TIMESTAMP(), reported) > MAKETIME(%s,0,0)" + "TIMEDIFF(UTC_TIMESTAMP(), reported) > MAKETIME(0,0,%s)" ) ADD_FOREIGN_KEY_CONSTRAINT_SERVER_UUID = ( diff --git a/lib/mysql/fabric/handler.py b/lib/mysql/fabric/handler.py index 804527c..5adbb83 100644 --- a/lib/mysql/fabric/handler.py +++ b/lib/mysql/fabric/handler.py @@ -63,7 +63,7 @@ "CREATE EVENT prune_log " "ON SCHEDULE EVERY %s SECOND " "DO DELETE FROM log WHERE " - "TIMEDIFF(UTC_TIMESTAMP(), reported) > MAKETIME(%s,0,0)" + "TIMEDIFF(UTC_TIMESTAMP(), reported) > MAKETIME(0,0,%s)" ) _CREATE_PROCEDURE_VIEW = (