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
e071bbcb
Commit
e071bbcb
authored
Jun 14, 2006
by
pekka@clam.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#20406 multi-platform testing - not FIX
parent
df358201
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
mysql-test/r/ndb_condition_pushdown.result
mysql-test/r/ndb_condition_pushdown.result
+24
-0
mysql-test/t/ndb_condition_pushdown.test
mysql-test/t/ndb_condition_pushdown.test
+22
-0
No files found.
mysql-test/r/ndb_condition_pushdown.result
View file @
e071bbcb
...
...
@@ -1842,5 +1842,29 @@ a b
select * from t1 where b like 'abc' or b like 'abc';
a b
3 abc
drop table t1;
create table t1 ( fname varchar(255), lname varchar(255) )
engine=ndbcluster;
insert into t1 values ("Young","Foo");
set engine_condition_pushdown = 0;
SELECT fname, lname FROM t1 WHERE (fname like 'Y%') or (lname like 'F%');
fname lname
Young Foo
set engine_condition_pushdown = 1;
SELECT fname, lname FROM t1 WHERE (fname like 'Y%') or (lname like 'F%');
fname lname
Young Foo
insert into t1 values ("aaa", "aaa");
insert into t1 values ("bbb", "bbb");
insert into t1 values ("ccc", "ccc");
insert into t1 values ("ddd", "ddd");
set engine_condition_pushdown = 0;
SELECT fname, lname FROM t1 WHERE (fname like 'Y%') or (lname like 'F%');
fname lname
Young Foo
set engine_condition_pushdown = 1;
SELECT fname, lname FROM t1 WHERE (fname like 'Y%') or (lname like 'F%');
fname lname
Young Foo
set engine_condition_pushdown = @old_ecpd;
DROP TABLE t1,t2,t3,t4,t5;
mysql-test/t/ndb_condition_pushdown.test
View file @
e071bbcb
...
...
@@ -1686,5 +1686,27 @@ select * from t1 where b like 'ab' or b like 'ab';
select
*
from
t1
where
b
like
'abc'
;
select
*
from
t1
where
b
like
'abc'
or
b
like
'abc'
;
# bug#20406 (maybe same as bug#17421 -1, not seen on 32-bit x86)
drop
table
t1
;
create
table
t1
(
fname
varchar
(
255
),
lname
varchar
(
255
)
)
engine
=
ndbcluster
;
insert
into
t1
values
(
"Young"
,
"Foo"
);
set
engine_condition_pushdown
=
0
;
SELECT
fname
,
lname
FROM
t1
WHERE
(
fname
like
'Y%'
)
or
(
lname
like
'F%'
);
set
engine_condition_pushdown
=
1
;
SELECT
fname
,
lname
FROM
t1
WHERE
(
fname
like
'Y%'
)
or
(
lname
like
'F%'
);
# make sure optimizer does not do some crazy shortcut
insert
into
t1
values
(
"aaa"
,
"aaa"
);
insert
into
t1
values
(
"bbb"
,
"bbb"
);
insert
into
t1
values
(
"ccc"
,
"ccc"
);
insert
into
t1
values
(
"ddd"
,
"ddd"
);
set
engine_condition_pushdown
=
0
;
SELECT
fname
,
lname
FROM
t1
WHERE
(
fname
like
'Y%'
)
or
(
lname
like
'F%'
);
set
engine_condition_pushdown
=
1
;
SELECT
fname
,
lname
FROM
t1
WHERE
(
fname
like
'Y%'
)
or
(
lname
like
'F%'
);
set
engine_condition_pushdown
=
@
old_ecpd
;
DROP
TABLE
t1
,
t2
,
t3
,
t4
,
t5
;
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