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
63216194
Commit
63216194
authored
Aug 17, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
249a10c7
e4bb5334
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
mysql-test/r/myisam_icp.result
mysql-test/r/myisam_icp.result
+14
-0
mysql-test/t/myisam_icp.test
mysql-test/t/myisam_icp.test
+14
-0
sql/sql_select.cc
sql/sql_select.cc
+6
-1
No files found.
mysql-test/r/myisam_icp.result
View file @
63216194
...
...
@@ -224,4 +224,18 @@ set optimizer_switch= @tmp_778434;
set @myisam_icp_tmp=@@optimizer_switch;
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
drop table if exists t0, t1, t1i, t1m;
#
# BUG#826935 Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed
#
CREATE TABLE t1 ( a int, b varchar(1024), c int, KEY (c), KEY (c,a)) ;
INSERT INTO t1 VALUES
(NULL,'x','-678428672'),
(NULL,'ok',NULL),
(796262400,'byluovkgwoukfxedyeffsedajyqkyhpaqqpozn', NULL),
(7,'STQUF',146014208),
(955711488,'WWVOR','-1515388928');
SELECT b FROM t1 WHERE a != 1 AND c IS NULL ORDER BY 1;
b
byluovkgwoukfxedyeffsedajyqkyhpaqqpozn
DROP TABLE t1;
set optimizer_switch=@myisam_icp_tmp;
mysql-test/t/myisam_icp.test
View file @
63216194
...
...
@@ -195,4 +195,18 @@ drop table if exists t0, t1, t1i, t1m;
drop
table
t0
,
t1
,
t1i
,
t1m
;
--
enable_parsing
--
echo
#
--
echo
# BUG#826935 Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed
--
echo
#
CREATE
TABLE
t1
(
a
int
,
b
varchar
(
1024
),
c
int
,
KEY
(
c
),
KEY
(
c
,
a
))
;
INSERT
INTO
t1
VALUES
(
NULL
,
'x'
,
'-678428672'
),
(
NULL
,
'ok'
,
NULL
),
(
796262400
,
'byluovkgwoukfxedyeffsedajyqkyhpaqqpozn'
,
NULL
),
(
7
,
'STQUF'
,
146014208
),
(
955711488
,
'WWVOR'
,
'-1515388928'
);
SELECT
b
FROM
t1
WHERE
a
!=
1
AND
c
IS
NULL
ORDER
BY
1
;
DROP
TABLE
t1
;
set
optimizer_switch
=@
myisam_icp_tmp
;
sql/sql_select.cc
View file @
63216194
...
...
@@ -19872,7 +19872,12 @@ static bool add_ref_to_table_cond(THD *thd, JOIN_TAB *join_tab)
error
=
(
int
)
cond
->
add
(
join_tab
->
select
->
cond
);
join_tab
->
select
->
cond
=
cond
;
if
(
join_tab
->
select
->
pre_idx_push_select_cond
)
join_tab
->
select
->
pre_idx_push_select_cond
=
cond
;
{
Item
*
new_cond
=
and_conds
(
join_tab
->
select
->
pre_idx_push_select_cond
,
cond
);
if
(
!
new_cond
->
fixed
&&
new_cond
->
fix_fields
(
thd
,
&
new_cond
))
error
=
1
;
join_tab
->
select
->
pre_idx_push_select_cond
=
new_cond
;
}
join_tab
->
set_select_cond
(
cond
,
__LINE__
);
}
else
if
((
join_tab
->
select
=
make_select
(
join_tab
->
table
,
0
,
0
,
cond
,
0
,
...
...
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