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
dd8c74be
Commit
dd8c74be
authored
Oct 01, 2004
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added index cardinality check
parent
ca47a4a2
Changes
2
Show 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 @
dd8c74be
...
@@ -6,7 +6,13 @@ attr1 INT NOT NULL,
...
@@ -6,7 +6,13 @@ attr1 INT NOT NULL,
attr2 INT,
attr2 INT,
attr3 VARCHAR(10)
attr3 VARCHAR(10)
) ENGINE=ndbcluster;
) 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');
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;
SELECT pk1 FROM t1 ORDER BY pk1;
pk1
pk1
9410
9410
...
...
mysql-test/t/ndb_basic.test
View file @
dd8c74be
...
@@ -20,8 +20,9 @@ CREATE TABLE t1 (
...
@@ -20,8 +20,9 @@ CREATE TABLE t1 (
attr3
VARCHAR
(
10
)
attr3
VARCHAR
(
10
)
)
ENGINE
=
ndbcluster
;
)
ENGINE
=
ndbcluster
;
SHOW
INDEX
FROM
t1
;
INSERT
INTO
t1
VALUES
(
9410
,
9412
,
NULL
,
'9412'
),
(
9411
,
9413
,
17
,
'9413'
);
INSERT
INTO
t1
VALUES
(
9410
,
9412
,
NULL
,
'9412'
),
(
9411
,
9413
,
17
,
'9413'
);
SHOW
INDEX
FROM
t1
;
SELECT
pk1
FROM
t1
ORDER
BY
pk1
;
SELECT
pk1
FROM
t1
ORDER
BY
pk1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
SELECT
t1
.*
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