Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d34c87c3
Commit
d34c87c3
authored
May 15, 2007
by
df@pippilotta.erinye.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#28439 date_formats test case fails with binlog disabled
parent
4f477617
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
mysql-test/r/date_formats.result
mysql-test/r/date_formats.result
+3
-6
mysql-test/t/date_formats.test
mysql-test/t/date_formats.test
+3
-6
No files found.
mysql-test/r/date_formats.result
View file @
d34c87c3
drop table if exists t1;
SHOW GLOBAL VARIABLES
LIKE "%_format%
";
SHOW GLOBAL VARIABLES
WHERE Variable_name LIKE "%_format%" AND Variable_name != "binlog_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
time_format %H.%i.%s
SHOW SESSION VARIABLES
LIKE "%_format%
";
SHOW SESSION VARIABLES
WHERE Variable_name LIKE "%_format%" AND Variable_name != "binlog_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
...
...
@@ -30,9 +28,8 @@ set datetime_format= '%H:%i:%s %Y-%m-%d';
set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
set datetime_format= '%h:%i:%s %p %Y-%m-%d';
set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
SHOW SESSION VARIABLES
LIKE "%
format";
SHOW SESSION VARIABLES
WHERE Variable_name LIKE "%format" AND Variable_name != "binlog_
format";
Variable_name Value
binlog_format <format>
date_format %m-%d-%Y
datetime_format %h:%i:%s.%f %p %Y-%m-%d
default_week_format 0
...
...
mysql-test/t/date_formats.test
View file @
d34c87c3
...
...
@@ -6,10 +6,8 @@
drop
table
if
exists
t1
;
--
enable_warnings
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
GLOBAL
VARIABLES
LIKE
"%_format%"
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%_format%"
;
SHOW
GLOBAL
VARIABLES
WHERE
Variable_name
LIKE
"%_format%"
AND
Variable_name
!=
"binlog_format"
;
SHOW
SESSION
VARIABLES
WHERE
Variable_name
LIKE
"%_format%"
AND
Variable_name
!=
"binlog_format"
;
#
# Test setting a lot of different formats to see which formats are accepted and
...
...
@@ -36,8 +34,7 @@ set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
set
datetime_format
=
'%h:%i:%s %p %Y-%m-%d'
;
set
datetime_format
=
'%h:%i:%s.%f %p %Y-%m-%d'
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%format"
;
SHOW
SESSION
VARIABLES
WHERE
Variable_name
LIKE
"%format"
AND
Variable_name
!=
"binlog_format"
;
--
error
1231
SET
time_format
=
'%h:%i:%s'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment