mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge alik.:/mnt/raid/alik/MySQL/devel/5.1
into alik.:/mnt/raid/alik/MySQL/devel/5.1-rt configure.in: Auto merged mysql-test/mysql-test-run.pl: Auto merged sql/handler.cc: Auto merged sql/mysqld.cc: Auto merged
This commit is contained in:
@ -185,7 +185,7 @@ our $opt_fast;
|
||||
our $opt_force;
|
||||
our $opt_reorder= 0;
|
||||
our $opt_enable_disabled;
|
||||
our $opt_mem;
|
||||
our $opt_mem= $ENV{'MTR_MEM'};
|
||||
|
||||
our $opt_gcov;
|
||||
our $opt_gcov_err;
|
||||
@ -743,7 +743,7 @@ sub command_line_setup () {
|
||||
|
||||
# Use /dev/shm as the preferred location for vardir and
|
||||
# thus implicitly also tmpdir. Add other locations to list
|
||||
my @tmpfs_locations= ("/dev/shm");
|
||||
my @tmpfs_locations= ($opt_mem, "/dev/shm");
|
||||
# One could maybe use "mount" to find tmpfs location(s)
|
||||
foreach my $fs (@tmpfs_locations)
|
||||
{
|
||||
@ -3369,6 +3369,11 @@ sub mysqld_arguments ($$$$$) {
|
||||
if ( $opt_valgrind_mysqld )
|
||||
{
|
||||
mtr_add_arg($args, "%s--skip-safemalloc", $prefix);
|
||||
|
||||
if ( $mysql_version_id < 50100 )
|
||||
{
|
||||
mtr_add_arg($args, "%s--skip-bdb", $prefix);
|
||||
}
|
||||
}
|
||||
|
||||
my $pidfile;
|
||||
@ -4649,9 +4654,9 @@ Options to control directories to use
|
||||
vardir=DIR The directory where files generated from the test run
|
||||
is stored (default: ./var). Specifying a ramdisk or
|
||||
tmpfs will speed up tests.
|
||||
mem=DIR Run testsuite in "memory" using tmpfs if
|
||||
mem Run testsuite in "memory" using tmpfs if
|
||||
available(default: /dev/shm)
|
||||
|
||||
reads path from MTR_MEM environment variable
|
||||
|
||||
Options to control what test suites or cases to run
|
||||
|
||||
|
@ -182,6 +182,81 @@ select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
|
||||
select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
|
||||
5 mod 3 5 mod -3 -5 mod 3 -5 mod -3
|
||||
2 2 -2 -2
|
||||
select (12%0) <=> null as '1';
|
||||
1
|
||||
1
|
||||
select (12%0) is null as '1';
|
||||
1
|
||||
1
|
||||
select 12%0 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select 12%2 as '0';
|
||||
0
|
||||
0
|
||||
select 12%NULL as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select 12 % null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null % 12 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null % 0 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select 0 % null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null % null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select (12 mod 0) <=> null as '1';
|
||||
1
|
||||
1
|
||||
select (12 mod 0) is null as '1';
|
||||
1
|
||||
1
|
||||
select 12 mod 0 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select 12 mod 2 as '0';
|
||||
0
|
||||
0
|
||||
select 12 mod null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null mod 12 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null mod 0 as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select 0 mod null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select null mod null as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(12.0, 0) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(12, 0.0) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(12, NULL) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(12.0, NULL) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(NULL, 2) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
select mod(NULL, 2.0) as 'NULL';
|
||||
NULL
|
||||
NULL
|
||||
create table t1 (a int, b int);
|
||||
insert into t1 values (1,2), (2,3), (3,4), (4,5);
|
||||
select * from t1 where a not between 1 and 2;
|
||||
|
@ -18,6 +18,7 @@ Success: the process has been started.
|
||||
Killing the process...
|
||||
Sleeping...
|
||||
Success: the process was restarted.
|
||||
Success: server is ready to accept connection on socket.
|
||||
SHOW INSTANCE STATUS mysqld1;
|
||||
instance_name state version_number version mysqld_compatible
|
||||
mysqld1 online VERSION_NUMBER VERSION no
|
||||
|
@ -47,7 +47,7 @@ drop table t1;
|
||||
mysqltest: Could not open connection 'default': 2026 SSL connection error
|
||||
mysqltest: Could not open connection 'default': 2026 SSL connection error
|
||||
mysqltest: Could not open connection 'default': 2026 SSL connection error
|
||||
Error when connection to server using SSL:Unable to get private key from ''
|
||||
SSL error: Unable to get private key from ''
|
||||
mysqltest: Could not open connection 'default': 2026 SSL connection error
|
||||
Error when connection to server using SSL:Unable to get certificate from ''
|
||||
SSL error: Unable to get certificate from ''
|
||||
mysqltest: Could not open connection 'default': 2026 SSL connection error
|
||||
|
@ -108,6 +108,40 @@ select 5.1 mod 3, 5.1 mod -3, -5.1 mod 3, -5.1 mod -3;
|
||||
|
||||
select 5 mod 3, 5 mod -3, -5 mod 3, -5 mod -3;
|
||||
|
||||
#
|
||||
# Bug#23411: The "%" (MOD) operator is not documented; MOD-ing zero returns strange result
|
||||
# Manual: "Division by zero produces a NULL result"
|
||||
#
|
||||
select (12%0) <=> null as '1';
|
||||
select (12%0) is null as '1';
|
||||
select 12%0 as 'NULL';
|
||||
select 12%2 as '0';
|
||||
select 12%NULL as 'NULL';
|
||||
select 12 % null as 'NULL';
|
||||
select null % 12 as 'NULL';
|
||||
select null % 0 as 'NULL';
|
||||
select 0 % null as 'NULL';
|
||||
select null % null as 'NULL';
|
||||
|
||||
select (12 mod 0) <=> null as '1';
|
||||
select (12 mod 0) is null as '1';
|
||||
select 12 mod 0 as 'NULL';
|
||||
select 12 mod 2 as '0';
|
||||
select 12 mod null as 'NULL';
|
||||
select null mod 12 as 'NULL';
|
||||
select null mod 0 as 'NULL';
|
||||
select 0 mod null as 'NULL';
|
||||
select null mod null as 'NULL';
|
||||
|
||||
select mod(12.0, 0) as 'NULL';
|
||||
select mod(12, 0.0) as 'NULL';
|
||||
select mod(12, NULL) as 'NULL';
|
||||
select mod(12.0, NULL) as 'NULL';
|
||||
select mod(NULL, 2) as 'NULL';
|
||||
select mod(NULL, 2.0) as 'NULL';
|
||||
|
||||
|
||||
#
|
||||
# Bug#6726: NOT BETWEEN parse failure
|
||||
#
|
||||
create table t1 (a int, b int);
|
||||
|
@ -46,10 +46,13 @@ START INSTANCE mysqld2;
|
||||
# FIXME: START INSTANCE should be synchronous.
|
||||
--exec $MYSQL_TEST_DIR/t/wait_for_process.sh $IM_MYSQLD2_PATH_PID 30 started
|
||||
|
||||
# 2. Restart IM-main: kill it and IM-angel will restart it.
|
||||
# 2. Restart IM-main: kill it and IM-angel will restart it; wait for IM to
|
||||
# start accepting connections again.
|
||||
|
||||
--exec $MYSQL_TEST_DIR/t/kill_n_check.sh $IM_PATH_PID restarted 30
|
||||
|
||||
--exec $MYSQL_TEST_DIR/t/wait_for_socket.sh $EXE_MYSQL $IM_PATH_SOCK $IM_USERNAME $IM_PASSWORD '' 30
|
||||
|
||||
# 3. Issue some statement -- connection should be re-established.
|
||||
|
||||
# Give some time to begin accepting connections after restart.
|
||||
|
Reference in New Issue
Block a user