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
cd557bf4
Commit
cd557bf4
authored
Mar 28, 2006
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.1-new
parents
3c6d2e32
37a6167d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
3 deletions
+58
-3
mysql-test/r/ndb_condition_pushdown.result
mysql-test/r/ndb_condition_pushdown.result
+17
-1
mysql-test/r/ndb_insert.result
mysql-test/r/ndb_insert.result
+16
-0
mysql-test/t/ndb_condition_pushdown.test
mysql-test/t/ndb_condition_pushdown.test
+11
-1
mysql-test/t/ndb_insert.test
mysql-test/t/ndb_insert.test
+8
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-1
No files found.
mysql-test/r/ndb_condition_pushdown.result
View file @
cd557bf4
...
@@ -1766,5 +1766,21 @@ select * from t3 left join t4 on t4.attr2 = t3.attr2 where t4.attr1 > 1 and t4.a
...
@@ -1766,5 +1766,21 @@ select * from t3 left join t4 on t4.attr2 = t3.attr2 where t4.attr1 > 1 and t4.a
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
1 SIMPLE t3 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
1 SIMPLE t4 ALL NULL NULL NULL NULL 6 Using where
1 SIMPLE t4 ALL NULL NULL NULL NULL 6 Using where
create table t5 (a int primary key auto_increment, b tinytext not null)
engine = ndb;
insert into t5 (b) values ('jonas'), ('jensing'), ('johan');
set engine_condition_pushdown = off;
select * from t5 where b like '%jo%' order by a;
a b
1 jonas
3 johan
set engine_condition_pushdown = on;
explain select * from t5 where b like '%jo%';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t5 ALL NULL NULL NULL NULL 3 Using where
select * from t5 where b like '%jo%' order by a;
a b
1 jonas
3 johan
set engine_condition_pushdown = @old_ecpd;
set engine_condition_pushdown = @old_ecpd;
DROP TABLE t1,t2,t3,t4;
DROP TABLE t1,t2,t3,t4
,t5
;
mysql-test/r/ndb_insert.result
View file @
cd557bf4
...
@@ -629,7 +629,23 @@ DELETE FROM t1;
...
@@ -629,7 +629,23 @@ DELETE FROM t1;
CREATE UNIQUE INDEX ai ON t1(a);
CREATE UNIQUE INDEX ai ON t1(a);
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (NULL),(2);
SELECT * FROM t1 ORDER BY a;
SELECT * FROM t1 ORDER BY a;
a
a
NULL
1
1
2
DROP TABLE t1;
CREATE TABLE t1(pk INT NOT NULL PRIMARY KEY, a INT, UNIQUE (a)) ENGINE=ndb;
INSERT IGNORE INTO t1 VALUES (1,1),(2,2),(3,3);
INSERT IGNORE INTO t1 VALUES (4,NULL),(5,NULL),(6,NULL),(7,4);
SELECT * FROM t1 ORDER BY pk;
pk a
1 1
2 2
3 3
4 NULL
5 NULL
6 NULL
7 4
DROP TABLE t1;
DROP TABLE t1;
mysql-test/t/ndb_condition_pushdown.test
View file @
cd557bf4
...
@@ -1639,5 +1639,15 @@ select * from t2 where (attr1 < 2) = (attr2 < 2) order by pk1;
...
@@ -1639,5 +1639,15 @@ select * from t2 where (attr1 < 2) = (attr2 < 2) order by pk1;
explain
explain
select
*
from
t3
left
join
t4
on
t4
.
attr2
=
t3
.
attr2
where
t4
.
attr1
>
1
and
t4
.
attr3
<
5
or
t4
.
attr1
is
null
order
by
t4
.
pk1
;
select
*
from
t3
left
join
t4
on
t4
.
attr2
=
t3
.
attr2
where
t4
.
attr1
>
1
and
t4
.
attr3
<
5
or
t4
.
attr1
is
null
order
by
t4
.
pk1
;
# bug#15722
create
table
t5
(
a
int
primary
key
auto_increment
,
b
tinytext
not
null
)
engine
=
ndb
;
insert
into
t5
(
b
)
values
(
'jonas'
),
(
'jensing'
),
(
'johan'
);
set
engine_condition_pushdown
=
off
;
select
*
from
t5
where
b
like
'%jo%'
order
by
a
;
set
engine_condition_pushdown
=
on
;
explain
select
*
from
t5
where
b
like
'%jo%'
;
select
*
from
t5
where
b
like
'%jo%'
order
by
a
;
set
engine_condition_pushdown
=
@
old_ecpd
;
set
engine_condition_pushdown
=
@
old_ecpd
;
DROP
TABLE
t1
,
t2
,
t3
,
t4
;
DROP
TABLE
t1
,
t2
,
t3
,
t4
,
t5
;
mysql-test/t/ndb_insert.test
View file @
cd557bf4
...
@@ -619,7 +619,15 @@ DELETE FROM t1;
...
@@ -619,7 +619,15 @@ DELETE FROM t1;
CREATE
UNIQUE
INDEX
ai
ON
t1
(
a
);
CREATE
UNIQUE
INDEX
ai
ON
t1
(
a
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
NULL
),(
2
);
SELECT
*
FROM
t1
ORDER
BY
a
;
SELECT
*
FROM
t1
ORDER
BY
a
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# Ignore and NULL values
CREATE
TABLE
t1
(
pk
INT
NOT
NULL
PRIMARY
KEY
,
a
INT
,
UNIQUE
(
a
))
ENGINE
=
ndb
;
INSERT
IGNORE
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
),(
3
,
3
);
INSERT
IGNORE
INTO
t1
VALUES
(
4
,
NULL
),(
5
,
NULL
),(
6
,
NULL
),(
7
,
4
);
SELECT
*
FROM
t1
ORDER
BY
pk
;
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
sql/ha_ndbcluster.cc
View file @
cd557bf4
...
@@ -8196,7 +8196,12 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -8196,7 +8196,12 @@ void ndb_serialize_cond(const Item *item, void *arg)
context
->
expecting_field_result
(
INT_RESULT
))
context
->
expecting_field_result
(
INT_RESULT
))
:
true
))
&&
:
true
))
&&
// Bit fields no yet supported in scan filter
// Bit fields no yet supported in scan filter
type
!=
MYSQL_TYPE_BIT
)
type
!=
MYSQL_TYPE_BIT
&&
// No BLOB support in scan filter
type
!=
MYSQL_TYPE_TINY_BLOB
&&
type
!=
MYSQL_TYPE_MEDIUM_BLOB
&&
type
!=
MYSQL_TYPE_LONG_BLOB
&&
type
!=
MYSQL_TYPE_BLOB
)
{
{
const
NDBCOL
*
col
=
tab
->
getColumn
(
field
->
field_name
);
const
NDBCOL
*
col
=
tab
->
getColumn
(
field
->
field_name
);
DBUG_ASSERT
(
col
);
DBUG_ASSERT
(
col
);
...
...
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