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
925942e7
Commit
925942e7
authored
Feb 22, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix for BUG#920132
parents
edab37cd
352e848f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
0 deletions
+68
-0
mysql-test/r/innodb_icp.result
mysql-test/r/innodb_icp.result
+29
-0
mysql-test/t/innodb_icp.test
mysql-test/t/innodb_icp.test
+33
-0
sql/item.h
sql/item.h
+6
-0
No files found.
mysql-test/r/innodb_icp.result
View file @
925942e7
...
...
@@ -835,5 +835,34 @@ Variable_name Value
Handler_pushed_index_cond_checks 2
Handler_pushed_index_cond_filtered 1
DROP TABLE t1;
#
# BUG#920132: Assert trx->n_active_thrs == 1 failed at que0que.c line 1050
#
CREATE TABLE t1 ( a INT )
ENGINE=InnoDB;
INSERT INTO t1 VALUES (7),(7);
CREATE TABLE t2 ( b VARCHAR(1) );
INSERT INTO t2 VALUES ('j'),('v');
CREATE TABLE t3 (
c INT, d VARCHAR(1), e VARCHAR(1),
KEY (d,c)
) ENGINE=InnoDB;
INSERT INTO t3
VALUES (6,'w','w'),
(1,'v','v'),(7,'s','s'),(4,'l','l'),
(7,'y','y'),(0,'c','c'),(2,'i','i'),
(9,'h','h'),(4,'q','q'),(0,'a','a'),
(9,'v','v'),(1,'u','u'),(3,'s','s'),
(8,'z','z'),(1,'h','h'),(8,'p','p'),
(6,'e','e'),(3,'i','i'),(6,'y','y');
SELECT *
FROM t1 INNER JOIN t2 INNER JOIN t3
ON d = b
WHERE
NOT EXISTS ( SELECT * FROM t3 )
OR a = c
ORDER BY e;
a b c d e
DROP TABLE t1,t2,t3;
set optimizer_switch=@innodb_icp_tmp;
set storage_engine= @save_storage_engine;
mysql-test/t/innodb_icp.test
View file @
925942e7
...
...
@@ -12,6 +12,39 @@ set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
--
source
include
/
icp_tests
.
inc
--
echo
#
--
echo
# BUG#920132: Assert trx->n_active_thrs == 1 failed at que0que.c line 1050
--
echo
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
7
),(
7
);
CREATE
TABLE
t2
(
b
VARCHAR
(
1
)
);
INSERT
INTO
t2
VALUES
(
'j'
),(
'v'
);
CREATE
TABLE
t3
(
c
INT
,
d
VARCHAR
(
1
),
e
VARCHAR
(
1
),
KEY
(
d
,
c
)
)
ENGINE
=
InnoDB
;
INSERT
INTO
t3
VALUES
(
6
,
'w'
,
'w'
),
(
1
,
'v'
,
'v'
),(
7
,
's'
,
's'
),(
4
,
'l'
,
'l'
),
(
7
,
'y'
,
'y'
),(
0
,
'c'
,
'c'
),(
2
,
'i'
,
'i'
),
(
9
,
'h'
,
'h'
),(
4
,
'q'
,
'q'
),(
0
,
'a'
,
'a'
),
(
9
,
'v'
,
'v'
),(
1
,
'u'
,
'u'
),(
3
,
's'
,
's'
),
(
8
,
'z'
,
'z'
),(
1
,
'h'
,
'h'
),(
8
,
'p'
,
'p'
),
(
6
,
'e'
,
'e'
),(
3
,
'i'
,
'i'
),(
6
,
'y'
,
'y'
);
SELECT
*
FROM
t1
INNER
JOIN
t2
INNER
JOIN
t3
ON
d
=
b
WHERE
NOT
EXISTS
(
SELECT
*
FROM
t3
)
OR
a
=
c
ORDER
BY
e
;
DROP
TABLE
t1
,
t2
,
t3
;
set
optimizer_switch
=@
innodb_icp_tmp
;
set
storage_engine
=
@
save_storage_engine
;
sql/item.h
View file @
925942e7
...
...
@@ -3901,6 +3901,12 @@ public:
return
example
->
is_expensive_processor
(
arg
);
}
virtual
void
set_null
();
bool
walk
(
Item_processor
processor
,
bool
walk_subquery
,
uchar
*
arg
)
{
if
(
example
&&
example
->
walk
(
processor
,
walk_subquery
,
arg
))
return
TRUE
;
return
(
this
->*
processor
)(
arg
);
}
};
...
...
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