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
6ba81ba5
Commit
6ba81ba5
authored
Feb 06, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge 192.168.0.10:mysql/mysql-5.1-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint
parents
15008f67
f7e566c9
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
7 deletions
+24
-7
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+8
-3
mysql-test/r/cast.result
mysql-test/r/cast.result
+4
-0
mysql-test/t/cast.test
mysql-test/t/cast.test
+7
-1
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
mysql-test/t/flush2-master.opt
mysql-test/t/flush2-master.opt
+1
-1
server-tools/instance-manager/instance.cc
server-tools/instance-manager/instance.cc
+1
-1
sql/item_timefunc.cc
sql/item_timefunc.cc
+3
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
6ba81ba5
...
@@ -3615,13 +3615,14 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3615,13 +3615,14 @@ sub mysqld_arguments ($$$$$) {
}
}
}
}
my
$pidfile
;
# Check if "extra_opt" contains --skip-log-bin
my
$skip_binlog
=
grep
('
--skip-log-bin
',
@$extra_opt
);
if
(
$type
eq
'
master
'
)
if
(
$type
eq
'
master
'
)
{
{
my
$id
=
$idx
>
0
?
$idx
+
101
:
1
;
my
$id
=
$idx
>
0
?
$idx
+
101
:
1
;
if
(
!
$opt_skip_master_binlog
)
if
(
!
(
$opt_skip_master_binlog
||
$skip_binlog
)
)
{
{
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/master-bin%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/master-bin%s
",
$prefix
,
$opt_vardir
,
$sidx
);
$opt_vardir
,
$sidx
);
...
@@ -3683,7 +3684,7 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3683,7 +3684,7 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
$slave
->
[
$idx
]
->
{'
path_myddir
'});
$slave
->
[
$idx
]
->
{'
path_myddir
'});
mtr_add_arg
(
$args
,
"
%s--init-rpl-role=slave
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--init-rpl-role=slave
",
$prefix
);
if
(
!
$opt_skip_slave_binlog
)
if
(
!
(
$opt_skip_slave_binlog
||
$skip_binlog
)
)
{
{
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/slave%s-bin
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/slave%s-bin
",
$prefix
,
$opt_vardir
,
$sidx
);
# FIXME use own dir for binlogs
$opt_vardir
,
$sidx
);
# FIXME use own dir for binlogs
...
@@ -3820,6 +3821,10 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3820,6 +3821,10 @@ sub mysqld_arguments ($$$$$) {
{
{
$found_skip_core
=
1
;
$found_skip_core
=
1
;
}
}
elsif
(
$skip_binlog
and
mtr_match_prefix
(
$arg
,
"
--binlog-format
"))
{
;
# Dont add --binlog-format when running without binlog
}
else
else
{
{
mtr_add_arg
(
$args
,
"
%s%s
",
$prefix
,
$arg
);
mtr_add_arg
(
$args
,
"
%s%s
",
$prefix
,
$arg
);
...
...
mysql-test/r/cast.result
View file @
6ba81ba5
...
@@ -348,6 +348,10 @@ Warnings:
...
@@ -348,6 +348,10 @@ Warnings:
Warning 1292 Truncated incorrect INTEGER value: '-1e+30'
Warning 1292 Truncated incorrect INTEGER value: '-1e+30'
Warning 1292 Truncated incorrect INTEGER value: '1e+30'
Warning 1292 Truncated incorrect INTEGER value: '1e+30'
DROP TABLE t1;
DROP TABLE t1;
select isnull(date(NULL)), isnull(cast(NULL as DATE));
isnull(date(NULL)) isnull(cast(NULL as DATE))
1 1
End of 4.1 tests
select cast('1.2' as decimal(3,2));
select cast('1.2' as decimal(3,2));
cast('1.2' as decimal(3,2))
cast('1.2' as decimal(3,2))
1.20
1.20
...
...
mysql-test/t/cast.test
View file @
6ba81ba5
...
@@ -176,7 +176,13 @@ INSERT INTO t1 SET f1 = +1.0e+30 ;
...
@@ -176,7 +176,13 @@ INSERT INTO t1 SET f1 = +1.0e+30 ;
SELECT
f1
AS
double_val
,
CAST
(
f1
AS
SIGNED
INT
)
AS
cast_val
FROM
t1
;
SELECT
f1
AS
double_val
,
CAST
(
f1
AS
SIGNED
INT
)
AS
cast_val
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# End of 4.1 tests
#
# Bug #23938: cast(NULL as DATE)
#
select
isnull
(
date
(
NULL
)),
isnull
(
cast
(
NULL
as
DATE
));
--
echo
End
of
4.1
tests
#decimal-related additions
#decimal-related additions
...
...
mysql-test/t/disabled.def
View file @
6ba81ba5
...
@@ -36,7 +36,6 @@ synchronization : Bug#24529 Test 'synchronization' fails on Mac pushb
...
@@ -36,7 +36,6 @@ synchronization : Bug#24529 Test 'synchronization' fails on Mac pushb
#ndb_binlog_discover : bug#21806 2006-08-24
#ndb_binlog_discover : bug#21806 2006-08-24
#ndb_autodiscover3 : bug#21806
#ndb_autodiscover3 : bug#21806
flush2 : Bug#24805 Pushbuild can't handle test with --disable-log-bin
mysql_upgrade : Bug#25074 mysql_upgrade gives inconsisten results
mysql_upgrade : Bug#25074 mysql_upgrade gives inconsisten results
plugin : Bug#25659 memory leak via "plugins" test
plugin : Bug#25659 memory leak via "plugins" test
rpl_ndb_dd_advance : Bug#25913 rpl_ndb_dd_advance fails randomly
rpl_ndb_dd_advance : Bug#25913 rpl_ndb_dd_advance fails randomly
mysql-test/t/flush2-master.opt
View file @
6ba81ba5
--
disable
-log-bin
--
skip
-log-bin
server-tools/instance-manager/instance.cc
View file @
6ba81ba5
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#pragma implementation
#pragma implementation
#endif
#endif
#include <my_global.h>
#include <mysql.h>
#include <mysql.h>
#include <signal.h>
#include <signal.h>
...
...
sql/item_timefunc.cc
View file @
6ba81ba5
...
@@ -2531,7 +2531,10 @@ longlong Item_date_typecast::val_int()
...
@@ -2531,7 +2531,10 @@ longlong Item_date_typecast::val_int()
DBUG_ASSERT
(
fixed
==
1
);
DBUG_ASSERT
(
fixed
==
1
);
TIME
ltime
;
TIME
ltime
;
if
(
args
[
0
]
->
get_date
(
&
ltime
,
TIME_FUZZY_DATE
))
if
(
args
[
0
]
->
get_date
(
&
ltime
,
TIME_FUZZY_DATE
))
{
null_value
=
1
;
return
0
;
return
0
;
}
return
(
longlong
)
(
ltime
.
year
*
10000L
+
ltime
.
month
*
100
+
ltime
.
day
);
return
(
longlong
)
(
ltime
.
year
*
10000L
+
ltime
.
month
*
100
+
ltime
.
day
);
}
}
...
...
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