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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bc1b9eb0
Commit
bc1b9eb0
authored
May 05, 2006
by
kroki@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/tomash/src/mysql_ab/mysql-4.1
into mysql.com:/home/tomash/src/mysql_ab/mysql-4.1-bug16501
parents
1139d375
57ff78b5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
38 deletions
+61
-38
Docs/changelog-4.0.xml
Docs/changelog-4.0.xml
+0
-18
Docs/changelog-4.1.xml
Docs/changelog-4.1.xml
+0
-18
mysql-test/r/date_formats.result
mysql-test/r/date_formats.result
+36
-0
mysql-test/t/date_formats.test
mysql-test/t/date_formats.test
+22
-0
sql/item_timefunc.cc
sql/item_timefunc.cc
+3
-2
No files found.
Docs/changelog-4.0.xml
deleted
100755 → 0
View file @
1139d375
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<!--
This is a dummy changelog file. Don't use it yet.
It merges upward without conflict.
-->
<appendix
id=
"news-4-0-x"
>
<title>
Changes in release 4.0.x
</title>
<para>
This is a dummy changelog file. Don't use it yet.
</para>
</appendix>
Docs/changelog-4.1.xml
deleted
100755 → 0
View file @
1139d375
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<!--
This is a dummy changelog file. Don't use it yet.
It merges upward without conflict.
-->
<appendix
id=
"news-4-1-x"
>
<title>
Changes in release 4.1.x
</title>
<para>
This is a dummy changelog file. Don't use it yet.
</para>
</appendix>
mysql-test/r/date_formats.result
View file @
bc1b9eb0
...
...
@@ -473,3 +473,39 @@ NULL
select str_to_date( 1, IF(1=1,NULL,NULL) );
str_to_date( 1, IF(1=1,NULL,NULL) )
NULL
SELECT TIME_FORMAT("24:00:00", '%r');
TIME_FORMAT("24:00:00", '%r')
12:00:00 AM
SELECT TIME_FORMAT("00:00:00", '%r');
TIME_FORMAT("00:00:00", '%r')
12:00:00 AM
SELECT TIME_FORMAT("12:00:00", '%r');
TIME_FORMAT("12:00:00", '%r')
12:00:00 PM
SELECT TIME_FORMAT("15:00:00", '%r');
TIME_FORMAT("15:00:00", '%r')
03:00:00 PM
SELECT TIME_FORMAT("01:00:00", '%r');
TIME_FORMAT("01:00:00", '%r')
01:00:00 AM
SELECT TIME_FORMAT("25:00:00", '%r');
TIME_FORMAT("25:00:00", '%r')
01:00:00 AM
SELECT TIME_FORMAT("00:00:00", '%l %p');
TIME_FORMAT("00:00:00", '%l %p')
12 AM
SELECT TIME_FORMAT("01:00:00", '%l %p');
TIME_FORMAT("01:00:00", '%l %p')
1 AM
SELECT TIME_FORMAT("12:00:00", '%l %p');
TIME_FORMAT("12:00:00", '%l %p')
12 PM
SELECT TIME_FORMAT("23:00:00", '%l %p');
TIME_FORMAT("23:00:00", '%l %p')
11 PM
SELECT TIME_FORMAT("24:00:00", '%l %p');
TIME_FORMAT("24:00:00", '%l %p')
12 AM
SELECT TIME_FORMAT("25:00:00", '%l %p');
TIME_FORMAT("25:00:00", '%l %p')
1 AM
mysql-test/t/date_formats.test
View file @
bc1b9eb0
...
...
@@ -276,3 +276,25 @@ select str_to_date( 1, NULL );
select
str_to_date
(
NULL
,
1
);
select
str_to_date
(
1
,
IF
(
1
=
1
,
NULL
,
NULL
)
);
# End of 4.1 tests
#
# Bug#11326
#
SELECT
TIME_FORMAT
(
"24:00:00"
,
'%r'
);
SELECT
TIME_FORMAT
(
"00:00:00"
,
'%r'
);
SELECT
TIME_FORMAT
(
"12:00:00"
,
'%r'
);
SELECT
TIME_FORMAT
(
"15:00:00"
,
'%r'
);
SELECT
TIME_FORMAT
(
"01:00:00"
,
'%r'
);
SELECT
TIME_FORMAT
(
"25:00:00"
,
'%r'
);
#
# Bug#11324
#
SELECT
TIME_FORMAT
(
"00:00:00"
,
'%l %p'
);
SELECT
TIME_FORMAT
(
"01:00:00"
,
'%l %p'
);
SELECT
TIME_FORMAT
(
"12:00:00"
,
'%l %p'
);
SELECT
TIME_FORMAT
(
"23:00:00"
,
'%l %p'
);
SELECT
TIME_FORMAT
(
"24:00:00"
,
'%l %p'
);
SELECT
TIME_FORMAT
(
"25:00:00"
,
'%l %p'
);
sql/item_timefunc.cc
View file @
bc1b9eb0
...
...
@@ -609,7 +609,7 @@ bool make_date_time(DATE_TIME_FORMAT *format, TIME *l_time,
break
;
case
'l'
:
days_i
=
l_time
->
hour
/
24
;
hours_i
=
(
l_time
->
hour
%
24
+
11
)
%
12
+
1
+
24
*
days_i
;
hours_i
=
(
l_time
->
hour
%
24
+
11
)
%
12
+
1
;
length
=
int10_to_str
(
hours_i
,
intbuff
,
10
)
-
intbuff
;
str
->
append_with_prefill
(
intbuff
,
length
,
1
,
'0'
);
break
;
...
...
@@ -620,7 +620,8 @@ bool make_date_time(DATE_TIME_FORMAT *format, TIME *l_time,
case
'r'
:
length
=
my_sprintf
(
intbuff
,
(
intbuff
,
(
l_time
->
hour
<
12
)
?
"%02d:%02d:%02d AM"
:
"%02d:%02d:%02d PM"
,
((
l_time
->
hour
%
24
)
<
12
)
?
"%02d:%02d:%02d AM"
:
"%02d:%02d:%02d PM"
,
(
l_time
->
hour
+
11
)
%
12
+
1
,
l_time
->
minute
,
l_time
->
second
));
...
...
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