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
17b36879
Commit
17b36879
authored
Aug 26, 2010
by
Jon Olav Hauglid
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.5-bugfixing to mysql-5.5-runtime.
parents
a663eb50
f0d2765c
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
62 additions
and
28 deletions
+62
-28
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-3
mysql-test/r/func_group.result
mysql-test/r/func_group.result
+11
-1
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+0
-3
mysql-test/r/mysql_not_windows.result
mysql-test/r/mysql_not_windows.result
+5
-0
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
+1
-1
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
+1
-1
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
+2
-2
mysql-test/suite/ndb/r/ndb_binlog_multi.result
mysql-test/suite/ndb/r/ndb_binlog_multi.result
+2
-2
mysql-test/suite/rpl_ndb/r/rpl_ndb_log.result
mysql-test/suite/rpl_ndb/r/rpl_ndb_log.result
+3
-3
mysql-test/suite/rpl_ndb/r/rpl_truncate_7ndb.result
mysql-test/suite/rpl_ndb/r/rpl_truncate_7ndb.result
+3
-3
mysql-test/t/func_group.test
mysql-test/t/func_group.test
+10
-1
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+0
-6
mysql-test/t/mysql_not_windows.test
mysql-test/t/mysql_not_windows.test
+15
-0
sql/item.cc
sql/item.cc
+7
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
17b36879
...
...
@@ -2155,9 +2155,8 @@ sub environment_setup {
# mysqlhotcopy
# ----------------------------------------------------
my
$mysqlhotcopy
=
mtr_pl_maybe_exists
("
$bindir
/scripts/mysqlhotcopy
");
# Since mysqltest interprets the real path as "false" in an if,
# use 1 ("true") to indicate "not exists" so it can be tested for
mtr_pl_maybe_exists
("
$bindir
/scripts/mysqlhotcopy
")
||
mtr_pl_maybe_exists
("
$path_client_bindir
/mysqlhotcopy
");
if
(
$mysqlhotcopy
)
{
$ENV
{'
MYSQLHOTCOPY
'}
=
$mysqlhotcopy
;
...
...
mysql-test/r/func_group.result
View file @
17b36879
...
...
@@ -1715,7 +1715,7 @@ drop table t1;
#
End of 5.1 tests
#
# Bug#55648: Server crash on MI
X
/MAX on maximum time value
# Bug#55648: Server crash on MI
N
/MAX on maximum time value
#
CREATE TABLE t1(c1 TIME NOT NULL);
INSERT INTO t1 VALUES('837:59:59');
...
...
@@ -1725,3 +1725,13 @@ MAX(c1)
838:59:59
DROP TABLE t1;
# End of the bug#55648
#
# Bug#56120: Failed assertion on MIN/MAX on negative time value
#
CREATE TABLE t1(c1 TIME NOT NULL);
INSERT INTO t1 VALUES('-00:00:01');
SELECT MAX(c1),MIN(c1) FROM t1;
MAX(c1) MIN(c1)
-00:00:01 -00:00:01
DROP TABLE t1;
# End of the bug#56120
mysql-test/r/mysql.result
View file @
17b36879
...
...
@@ -432,8 +432,5 @@ Bug #47147: mysql client option --skip-column-names does not apply to vertical o
*************************** 1. row ***************************
1
Bug #54466 client 5.5 built from source lacks "pager" support
a
1
End of tests
mysql-test/r/mysql_not_windows.result
0 → 100644
View file @
17b36879
Bug #54466 client 5.5 built from source lacks "pager" support
a
1
End of tests
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
View file @
17b36879
...
...
@@ -193,4 +193,4 @@ mysqld-bin.000001 # Table_map 2 # table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001 # Write_rows 2 # table_id: #
mysqld-bin.000001 # Write_rows 2 # table_id: # flags: STMT_END_F
mysqld-bin.000001 # Query 2 # COMMIT
mysqld-bin.000001 # Query 2 # use `test`;
drop table t2
mysqld-bin.000001 # Query 2 # use `test`;
DROP TABLE `t2` /* generated by server */
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
View file @
17b36879
...
...
@@ -7,5 +7,5 @@ create table t1 (a int primary key, b int) engine=ndb;
insert into t1 values (1, 1);
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000001 # Query 1 # use `test`;
drop table if exists t1
mysqld-bin.000001 # Query 1 # use `test`;
DROP TABLE IF EXISTS `t1` /* generated by server */
drop database mysqltest;
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
View file @
17b36879
...
...
@@ -47,8 +47,8 @@ mysqld-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001 # Write_rows 1 # table_id: #
mysqld-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
mysqld-bin.000001 # Query 1 # COMMIT
mysqld-bin.000001 # Query 1 # use `mysqltest`;
drop table t1
mysqld-bin.000001 # Query 1 # use `mysqltest`;
drop table t2
mysqld-bin.000001 # Query 1 # use `mysqltest`;
DROP TABLE `t1` /* generated by server */
mysqld-bin.000001 # Query 1 # use `mysqltest`;
DROP TABLE `t2` /* generated by server */
mysqld-bin.000001 # Query 1 # use `mysqltest`; create table t1 (d int key, e int) engine=ndb
mysqld-bin.000001 # Query 1 # use `mysqltest`; create table t2 (d int key, e int) engine=ndb
mysqld-bin.000001 # Query 1 # BEGIN
...
...
mysql-test/suite/ndb/r/ndb_binlog_multi.result
View file @
17b36879
...
...
@@ -37,7 +37,7 @@ mysqld-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001 # Write_rows 1 # table_id: #
mysqld-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
mysqld-bin.000001 # Query 1 # COMMIT
mysqld-bin.000001 # Query 1 # use `test`; DROP TABLE
t2
mysqld-bin.000001 # Query 1 # use `test`; DROP TABLE
`t2` /* generated by server */
SELECT inserts,updates,deletes,schemaops FROM
mysql.ndb_binlog_index WHERE epoch=<the_epoch>;
inserts updates deletes schemaops
...
...
@@ -73,7 +73,7 @@ mysqld-bin.000001 # Table_map 2 # table_id: # (mysql.ndb_apply_status)
mysqld-bin.000001 # Write_rows 2 # table_id: #
mysqld-bin.000001 # Write_rows 2 # table_id: # flags: STMT_END_F
mysqld-bin.000001 # Query 2 # COMMIT
mysqld-bin.000001 # Query 2 # use `test`;
drop table t1
mysqld-bin.000001 # Query 2 # use `test`;
DROP TABLE `t1` /* generated by server */
SELECT inserts,updates,deletes,schemaops FROM
mysql.ndb_binlog_index WHERE epoch > <the_epoch> AND epoch <= <the_epoch2>;
inserts updates deletes schemaops
...
...
mysql-test/suite/rpl_ndb/r/rpl_ndb_log.result
View file @
17b36879
...
...
@@ -25,7 +25,7 @@ master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`;
drop table t1
master-bin.000001 # Query # # use `test`;
DROP TABLE `t1` /* generated by server */
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=NDB
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1)
...
...
@@ -204,7 +204,7 @@ master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`;
drop table t1
master-bin.000001 # Query # # use `test`;
DROP TABLE `t1` /* generated by server */
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=NDB
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1)
...
...
@@ -240,7 +240,7 @@ slave-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
slave-bin.000001 # Write_rows # # table_id: #
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
slave-bin.000001 # Query # # COMMIT
slave-bin.000001 # Query # # use `test`;
drop table t1
slave-bin.000001 # Query # # use `test`;
DROP TABLE `t1` /* generated by server */
slave-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=NDB
slave-bin.000001 # Query # # BEGIN
slave-bin.000001 # Table_map # # table_id: # (test.t1)
...
...
mysql-test/suite/rpl_ndb/r/rpl_truncate_7ndb.result
View file @
17b36879
...
...
@@ -37,7 +37,7 @@ master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
master-bin.000001 # Query # # use `test`; DROP TABLE
t1
master-bin.000001 # Query # # use `test`; DROP TABLE
`t1` /* generated by server */
**** On Master ****
CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
INSERT INTO t1 VALUES (1,1), (2,2);
...
...
@@ -72,7 +72,7 @@ master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
master-bin.000001 # Query # # use `test`; DROP TABLE
t1
master-bin.000001 # Query # # use `test`; DROP TABLE
`t1` /* generated by server */
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1)
...
...
@@ -86,4 +86,4 @@ master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
master-bin.000001 # Write_rows # # table_id: #
master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`; DROP TABLE
t1
master-bin.000001 # Query # # use `test`; DROP TABLE
`t1` /* generated by server */
mysql-test/t/func_group.test
View file @
17b36879
...
...
@@ -1086,7 +1086,7 @@ drop table t1;
--
echo
End
of
5.1
tests
--
echo
#
--
echo
# Bug#55648: Server crash on MI
X
/MAX on maximum time value
--
echo
# Bug#55648: Server crash on MI
N
/MAX on maximum time value
--
echo
#
CREATE
TABLE
t1
(
c1
TIME
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
'837:59:59'
);
...
...
@@ -1095,3 +1095,12 @@ SELECT MAX(c1) FROM t1;
DROP
TABLE
t1
;
--
echo
# End of the bug#55648
--
echo
#
--
echo
# Bug#56120: Failed assertion on MIN/MAX on negative time value
--
echo
#
CREATE
TABLE
t1
(
c1
TIME
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
'-00:00:01'
);
SELECT
MAX
(
c1
),
MIN
(
c1
)
FROM
t1
;
DROP
TABLE
t1
;
--
echo
# End of the bug#56120
mysql-test/t/mysql.test
View file @
17b36879
...
...
@@ -425,11 +425,5 @@ drop table t1;
--
echo
--
exec
$MYSQL
--
skip
-
column
-
names
--
vertical
test
-
e
"select 1 as a"
#
# Bug #54466 client 5.5 built from source lacks "pager" support
#
--
echo
Bug
#54466 client 5.5 built from source lacks "pager" support
--
exec
$MYSQL
--
pager
test
-
e
"select 1 as a"
--
echo
--
echo
End
of
tests
mysql-test/t/mysql_not_windows.test
0 → 100644
View file @
17b36879
--
source
include
/
not_windows
.
inc
# This test should work in embedded server after we fix mysqltest
--
source
include
/
not_embedded
.
inc
#
# Testing the MySQL command line client(mysql)
#
#
# Bug #54466 client 5.5 built from source lacks "pager" support
#
--
echo
Bug
#54466 client 5.5 built from source lacks "pager" support
--
exec
$MYSQL
--
pager
test
-
e
"select 1 as a"
--
echo
--
echo
End
of
tests
sql/item.cc
View file @
17b36879
...
...
@@ -7510,9 +7510,14 @@ String *Item_cache_datetime::val_str(String *str)
return
NULL
;
if
(
cached_field_type
==
MYSQL_TYPE_TIME
)
{
ulonglong
time
=
int_value
;
DBUG_ASSERT
(
time
<=
TIME_MAX_VALUE
);
longlong
time
=
int_value
;
set_zero_time
(
&
ltime
,
MYSQL_TIMESTAMP_TIME
);
if
(
time
<
0
)
{
time
=
-
time
;
ltime
.
neg
=
TRUE
;
}
DBUG_ASSERT
(
time
<=
TIME_MAX_VALUE
);
ltime
.
second
=
time
%
100
;
time
/=
100
;
ltime
.
minute
=
time
%
100
;
...
...
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