mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
5.3 merge
This commit is contained in:
@@ -94,7 +94,7 @@ INSERT INTO t1 VALUES (1),(2);
|
||||
INSERT INTO t2 VALUES (1),(2);
|
||||
SET SESSION debug_dbug="+d,bug11747970_raise_error";
|
||||
INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
|
||||
ERROR HY000: Unknown error
|
||||
ERROR 70100: Query execution was interrupted
|
||||
SET SESSION debug_dbug = DEFAULT;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
|
||||
@@ -264,6 +264,13 @@ INET_NTOA(0)
|
||||
SELECT '1' IN ('1', INET_NTOA(0));
|
||||
'1' IN ('1', INET_NTOA(0))
|
||||
1
|
||||
SELECT NAME_CONST('a', -(1 OR 2)) OR 1;
|
||||
ERROR HY000: Incorrect arguments to NAME_CONST
|
||||
SELECT NAME_CONST('a', -(1 AND 2)) AND 1;
|
||||
ERROR HY000: Incorrect arguments to NAME_CONST
|
||||
SELECT NAME_CONST('a', -(1)) OR 1;
|
||||
NAME_CONST('a', -(1)) OR 1
|
||||
1
|
||||
#
|
||||
# Bug #52165: Assertion failed: file .\dtoa.c, line 465
|
||||
#
|
||||
@@ -340,6 +347,3 @@ drop table t1,tv;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
#
|
||||
# End of tests
|
||||
#
|
||||
|
||||
5
mysql-test/r/union_crash-714.result
Normal file
5
mysql-test/r/union_crash-714.result
Normal file
@@ -0,0 +1,5 @@
|
||||
create table t1 (i tinyint);
|
||||
set debug_dbug='+d,bug11747970_raise_error';
|
||||
insert into t1 (i) select i from t1 union select i from t1;
|
||||
ERROR 70100: Query execution was interrupted
|
||||
drop table t1;
|
||||
@@ -60,6 +60,7 @@ sub searchd_start {
|
||||
my ($sphinx, $test) = @_; # My::Config::Group, My::Test
|
||||
|
||||
return unless $exe_sphinx_indexer and $exe_sphinx_searchd;
|
||||
return if $sphinx->{proc}; # Already started
|
||||
|
||||
# First we must run the indexer to create the data.
|
||||
my $sphinx_data_dir= "$::opt_vardir/" . $sphinx->name();
|
||||
|
||||
10
mysql-test/suite/sphinx/union-5539.result
Normal file
10
mysql-test/suite/sphinx/union-5539.result
Normal file
@@ -0,0 +1,10 @@
|
||||
create table ts (id bigint unsigned not null, w int not null, query varchar(255) not null, index(query)) engine=sphinx connection="sphinx://127.0.0.1:PORT/*";
|
||||
SELECT a.* FROM (SELECT * FROM ts si WHERE si.query=';mode=extended2;limit=1000000;maxmatches=500') AS a UNION SELECT b.* FROM (SELECT * FROM ts si WHERE si.query='@* 123nothingtofind123;mode=extended2;limit=1000000;maxmatches=500') AS b;
|
||||
id w query
|
||||
SELECT a.* FROM (SELECT * FROM ts si WHERE si.query='@* 123nothingtofind123;mode=extended2;limit=1000000;maxmatches=500') AS a UNION SELECT b.* FROM (SELECT * FROM ts si WHERE si.query=';mode=extended2;limit=1000000;maxmatches=500') AS b;
|
||||
id w query
|
||||
1 1 ;mode=extended2;limit=1000000;maxmatches=500
|
||||
2 1 ;mode=extended2;limit=1000000;maxmatches=500
|
||||
3 1 ;mode=extended2;limit=1000000;maxmatches=500
|
||||
4 1 ;mode=extended2;limit=1000000;maxmatches=500
|
||||
drop table ts;
|
||||
16
mysql-test/suite/sphinx/union-5539.test
Normal file
16
mysql-test/suite/sphinx/union-5539.test
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# MDEV-5539 Empty results in UNION with Sphinx engine
|
||||
#
|
||||
--replace_result $SPHINXSEARCH_PORT PORT
|
||||
eval create table ts (id bigint unsigned not null, w int not null, query varchar(255) not null, index(query)) engine=sphinx connection="sphinx://127.0.0.1:$SPHINXSEARCH_PORT/*";
|
||||
let $q1=SELECT * FROM ts si WHERE si.query=';mode=extended2;limit=1000000;maxmatches=500';
|
||||
let $q2=SELECT * FROM ts si WHERE si.query='@* 123nothingtofind123;mode=extended2;limit=1000000;maxmatches=500';
|
||||
########################
|
||||
# BUG BUG BUG !!!
|
||||
# Note, the result below is incorrect! It should be updated when
|
||||
# MDEV-5539 is fixed upstream!!!
|
||||
########################
|
||||
eval SELECT a.* FROM ($q1) AS a UNION SELECT b.* FROM ($q2) AS b;
|
||||
eval SELECT a.* FROM ($q2) AS a UNION SELECT b.* FROM ($q1) AS b;
|
||||
drop table ts;
|
||||
|
||||
@@ -103,7 +103,7 @@ CREATE TABLE t2(f1 INT);
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
INSERT INTO t2 VALUES (1),(2);
|
||||
SET SESSION debug_dbug="+d,bug11747970_raise_error";
|
||||
--error 1105
|
||||
--error ER_QUERY_INTERRUPTED
|
||||
INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
|
||||
SET SESSION debug_dbug = DEFAULT;
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
@@ -298,6 +298,14 @@ DROP TABLE t1;
|
||||
SELECT INET_NTOA(0);
|
||||
SELECT '1' IN ('1', INET_NTOA(0));
|
||||
|
||||
#
|
||||
# MDEV-5655 Server crashes on NAME_CONST containing AND/OR expressions
|
||||
#
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
SELECT NAME_CONST('a', -(1 OR 2)) OR 1;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
SELECT NAME_CONST('a', -(1 AND 2)) AND 1;
|
||||
SELECT NAME_CONST('a', -(1)) OR 1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug #52165: Assertion failed: file .\dtoa.c, line 465
|
||||
@@ -372,6 +380,3 @@ drop table t1,tv;
|
||||
--echo # End of 5.5 tests
|
||||
--echo #
|
||||
|
||||
--echo #
|
||||
--echo # End of tests
|
||||
--echo #
|
||||
|
||||
9
mysql-test/t/union_crash-714.test
Normal file
9
mysql-test/t/union_crash-714.test
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# MDEV-714 LP:1020645 - crash (sig 11) with union query
|
||||
#
|
||||
--source include/have_debug.inc
|
||||
create table t1 (i tinyint);
|
||||
set debug_dbug='+d,bug11747970_raise_error';
|
||||
--error ER_QUERY_INTERRUPTED
|
||||
insert into t1 (i) select i from t1 union select i from t1;
|
||||
drop table t1;
|
||||
Reference in New Issue
Block a user