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
5d96bced
Commit
5d96bced
authored
Nov 10, 2006
by
mskold/marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1
parents
ef9f68a7
f2933507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
mysql-test/t/ndb_index_unique.test
mysql-test/t/ndb_index_unique.test
+14
-1
No files found.
mysql-test/t/ndb_index_unique.test
View file @
5d96bced
...
...
@@ -91,7 +91,6 @@ select * from t2 order by a;
drop
table
t2
;
--
error
1121
CREATE
TABLE
t2
(
a
int
unsigned
NOT
NULL
PRIMARY
KEY
,
b
int
unsigned
not
null
,
...
...
@@ -99,6 +98,20 @@ CREATE TABLE t2 (
UNIQUE
(
b
,
c
)
USING
HASH
)
engine
=
ndbcluster
;
insert
t2
values
(
1
,
1
,
NULL
),(
2
,
2
,
2
),(
3
,
3
,
NULL
),(
4
,
4
,
4
),(
5
,
5
,
NULL
),(
6
,
6
,
6
),(
7
,
7
,
NULL
),(
8
,
3
,
NULL
),(
9
,
3
,
NULL
);
select
*
from
t2
where
c
IS
NULL
order
by
a
;
select
*
from
t2
where
b
=
3
AND
c
IS
NULL
order
by
a
;
select
*
from
t2
where
(
b
=
3
OR
b
=
5
)
AND
c
IS
NULL
order
by
a
;
set
@
old_ecpd
=
@@
session
.
engine_condition_pushdown
;
set
engine_condition_pushdown
=
true
;
explain
select
*
from
t2
where
(
b
=
3
OR
b
=
5
)
AND
c
IS
NULL
AND
a
<
9
order
by
a
;
select
*
from
t2
where
(
b
=
3
OR
b
=
5
)
AND
c
IS
NULL
AND
a
<
9
order
by
a
;
set
engine_condition_pushdown
=
@
old_ecpd
;
drop
table
t2
;
#
# Show use of PRIMARY KEY USING HASH indexes
#
...
...
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