~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/mysql-test/patches/bug35261.diff

  • Committer: Monty Taylor
  • Date: 2009-03-12 23:13:55 UTC
  • mfrom: (641.2.2 innodb-plugin-upstream)
  • mto: This revision was merged to the branch mainline in revision 939.
  • Revision ID: mordred@inaugust.com-20090312231355-cxg38eddkpjhnuea
Merged in InnoDB Plugin 1.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- mysql-test/t/date_formats.test.orig 2007-06-15 02:53:07.000000000 +0300
2
 
+++ mysql-test/t/date_formats.test      2008-03-19 17:25:10.000000000 +0200
3
 
@@ -7,9 +7,15 @@
4
 
 --enable_warnings
5
 
 
6
 
 --replace_result ROW <format> STATEMENT <format> MIXED <format>
7
 
-SHOW GLOBAL VARIABLES LIKE "%e_format";
8
 
+SELECT variable_name, variable_value
9
 
+FROM information_schema.global_variables
10
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
11
 
+ORDER BY variable_name;
12
 
 --replace_result ROW <format> STATEMENT <format> MIXED <format>
13
 
-SHOW SESSION VARIABLES LIKE "%e_format";
14
 
+SELECT variable_name, variable_value
15
 
+FROM information_schema.session_variables
16
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
17
 
+ORDER BY variable_name;
18
 
 
19
 
 #
20
 
 # Test setting a lot of different formats to see which formats are accepted and
21
 
@@ -37,7 +43,10 @@
22
 
 set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
23
 
 
24
 
 --replace_result ROW <format> STATEMENT <format> MIXED <format>
25
 
-SHOW SESSION VARIABLES LIKE "%e_format";
26
 
+SELECT variable_name, variable_value
27
 
+FROM information_schema.session_variables
28
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
29
 
+ORDER BY variable_name;
30
 
 
31
 
 --error 1231
32
 
 SET time_format='%h:%i:%s';
33
 
--- mysql-test/r/date_formats.result.orig       2008-02-12 21:09:14.000000000 +0200
34
 
+++ mysql-test/r/date_formats.result    2008-03-19 17:26:33.000000000 +0200
35
 
@@ -1,14 +1,20 @@
36
 
 drop table if exists t1;
37
 
-SHOW GLOBAL VARIABLES LIKE "%e_format";
38
 
-Variable_name  Value
39
 
-date_format    %d.%m.%Y
40
 
-datetime_format        %Y-%m-%d %H:%i:%s
41
 
-time_format    %H.%i.%s
42
 
-SHOW SESSION VARIABLES LIKE "%e_format";
43
 
-Variable_name  Value
44
 
-date_format    %d.%m.%Y
45
 
-datetime_format        %Y-%m-%d %H:%i:%s
46
 
-time_format    %H.%i.%s
47
 
+SELECT variable_name, variable_value
48
 
+FROM information_schema.global_variables
49
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
50
 
+ORDER BY variable_name;
51
 
+variable_name  variable_value
52
 
+DATETIME_FORMAT        %Y-%m-%d %H:%i:%s
53
 
+DATE_FORMAT    %d.%m.%Y
54
 
+TIME_FORMAT    %H.%i.%s
55
 
+SELECT variable_name, variable_value
56
 
+FROM information_schema.session_variables
57
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
58
 
+ORDER BY variable_name;
59
 
+variable_name  variable_value
60
 
+DATETIME_FORMAT        %Y-%m-%d %H:%i:%s
61
 
+DATE_FORMAT    %d.%m.%Y
62
 
+TIME_FORMAT    %H.%i.%s
63
 
 SET time_format='%H%i%s';
64
 
 SET time_format='%H:%i:%s.%f';
65
 
 SET time_format='%h-%i-%s.%f%p';
66
 
@@ -26,11 +32,14 @@
67
 
 set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
68
 
 set datetime_format= '%h:%i:%s %p %Y-%m-%d';
69
 
 set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
70
 
-SHOW SESSION VARIABLES LIKE "%e_format";
71
 
-Variable_name  Value
72
 
-date_format    %m-%d-%Y
73
 
-datetime_format        %h:%i:%s.%f %p %Y-%m-%d
74
 
-time_format    %h:%i:%s%p
75
 
+SELECT variable_name, variable_value
76
 
+FROM information_schema.session_variables
77
 
+WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
78
 
+ORDER BY variable_name;
79
 
+variable_name  variable_value
80
 
+DATETIME_FORMAT        %h:%i:%s.%f %p %Y-%m-%d
81
 
+DATE_FORMAT    %m-%d-%Y
82
 
+TIME_FORMAT    %h:%i:%s%p
83
 
 SET time_format='%h:%i:%s';
84
 
 ERROR 42000: Variable 'time_format' can't be set to the value of '%h:%i:%s'
85
 
 SET time_format='%H %i:%s';