~ubuntu-branches/ubuntu/trusty/mysql-5.5/trusty-security

« back to all changes in this revision

Viewing changes to debian/patches/fix_test_events_2.patch

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2017-01-18 07:41:29 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20170118074129-gyilougbokbprl1p
Tags: 5.5.54-0ubuntu0.14.04.1
* SECURITY UPDATE: Update to 5.5.54 to fix security issues
  - CVE-2017-3238
  - CVE-2017-3243
  - CVE-2017-3244
  - CVE-2017-3258
  - CVE-2017-3265
  - CVE-2017-3291
  - CVE-2017-3312
  - CVE-2017-3313
  - CVE-2017-3317
  - CVE-2017-3318 
* debian/patches/fix_test_events_2.patch: fix date in test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix failing test main.events_2
 
2
 The test fails because it adds an event scheduled for 2017-01-01,
 
3
 ie. in the past, causing it to fail. The patch adds a short-term
 
4
 fix by adding 10 years to the date, pending a fix upstream.
 
5
Author: Lars Tangvald <lars.tangvald@oracle.com>
 
6
Bug: http://bugs.mysql.com/bug.php?id=84381
 
7
Forwarded: not-needed
 
8
Last-Update: 2017-01-02
 
9
 
 
10
Index: mysql-5.5.54/mysql-test/r/events_2.result
 
11
===================================================================
 
12
--- mysql-5.5.54.orig/mysql-test/r/events_2.result      2017-01-18 07:41:20.905694694 -0500
 
13
+++ mysql-5.5.54/mysql-test/r/events_2.result   2017-01-18 07:41:20.901694650 -0500
 
14
@@ -1,10 +1,10 @@
 
15
 drop database if exists events_test;
 
16
 create database events_test;
 
17
 use events_test;
 
18
-create event e_26 on schedule at '2017-01-01 00:00:00' disable do set @a = 5;
 
19
+create event e_26 on schedule at '2027-01-01 00:00:00' disable do set @a = 5;
 
20
 select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
 
21
 db     name    body    definer convert_tz(execute_at, 'UTC', 'SYSTEM') on_completion
 
22
-events_test    e_26    set @a = 5      root@localhost  2017-01-01 00:00:00     DROP
 
23
+events_test    e_26    set @a = 5      root@localhost  2027-01-01 00:00:00     DROP
 
24
 drop event e_26;
 
25
 create event e_26 on schedule at NULL disable do set @a = 5;
 
26
 ERROR HY000: Incorrect AT value: 'NULL'
 
27
Index: mysql-5.5.54/mysql-test/t/events_2.test
 
28
===================================================================
 
29
--- mysql-5.5.54.orig/mysql-test/t/events_2.test        2017-01-18 07:41:20.905694694 -0500
 
30
+++ mysql-5.5.54/mysql-test/t/events_2.test     2017-01-18 07:41:20.905694694 -0500
 
31
@@ -13,7 +13,7 @@
 
32
 # mysql.event intact checking end
 
33
 #
 
34
 
 
35
-create event e_26 on schedule at '2017-01-01 00:00:00' disable do set @a = 5;
 
36
+create event e_26 on schedule at '2027-01-01 00:00:00' disable do set @a = 5;
 
37
 select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
 
38
 drop event e_26;
 
39
 --error ER_WRONG_VALUE