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
b8f0b6f3
Commit
b8f0b6f3
authored
Oct 01, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added index cardinality check
parent
36d3f48c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+6
-0
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+2
-1
No files found.
mysql-test/r/ndb_basic.result
View file @
b8f0b6f3
...
...
@@ -6,7 +6,13 @@ attr1 INT NOT NULL,
attr2 INT,
attr3 VARCHAR(10)
) ENGINE=ndbcluster;
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 0 PRIMARY 1 pk1 A 0 NULL NULL BTREE
INSERT INTO t1 VALUES (9410,9412, NULL, '9412'), (9411,9413, 17, '9413');
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 0 PRIMARY 1 pk1 A 2 NULL NULL BTREE
SELECT pk1 FROM t1 ORDER BY pk1;
pk1
9410
...
...
mysql-test/t/ndb_basic.test
View file @
b8f0b6f3
...
...
@@ -20,8 +20,9 @@ CREATE TABLE t1 (
attr3
VARCHAR
(
10
)
)
ENGINE
=
ndbcluster
;
SHOW
INDEX
FROM
t1
;
INSERT
INTO
t1
VALUES
(
9410
,
9412
,
NULL
,
'9412'
),
(
9411
,
9413
,
17
,
'9413'
);
SHOW
INDEX
FROM
t1
;
SELECT
pk1
FROM
t1
ORDER
BY
pk1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
SELECT
t1
.*
FROM
t1
ORDER
BY
pk1
;
...
...
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