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
19d9bdbd
Commit
19d9bdbd
authored
Jan 08, 2007
by
mskold/marty@mysql.com/linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
parents
26ea040e
8f9f1612
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
mysql-test/r/ndb_index_ordered.result
mysql-test/r/ndb_index_ordered.result
+8
-0
mysql-test/t/ndb_index_ordered.test
mysql-test/t/ndb_index_ordered.test
+12
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+10
-0
No files found.
mysql-test/r/ndb_index_ordered.result
View file @
19d9bdbd
...
...
@@ -658,3 +658,11 @@ insert into t1 (a, c) values (1,'aaa'),(3,'bbb');
select count(*) from t1 where c<'bbb';
count(*)
1
create table nationaldish (DishID int(10) unsigned NOT NULL AUTO_INCREMENT,
CountryCode char(3) NOT NULL,
DishTitle varchar(64) NOT NULL,
calories smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (DishID),
INDEX i USING HASH (countrycode,calories)
) ENGINE=ndbcluster;
ERROR HY000: Can't create table './test/nationaldish.frm' (errno: 138)
mysql-test/t/ndb_index_ordered.test
View file @
19d9bdbd
...
...
@@ -356,3 +356,15 @@ insert into t1 (a, c) values (1,'aaa'),(3,'bbb');
select
count
(
*
)
from
t1
where
c
<
'bbb'
;
# End of 4.1 tests
# bug#24820 CREATE INDEX ....USING HASH on NDB table creates ordered index, not HASH index
--
error
ER_CANT_CREATE_TABLE
create
table
nationaldish
(
DishID
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
CountryCode
char
(
3
)
NOT
NULL
,
DishTitle
varchar
(
64
)
NOT
NULL
,
calories
smallint
(
5
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
DishID
),
INDEX
i
USING
HASH
(
countrycode
,
calories
)
)
ENGINE
=
ndbcluster
;
sql/ha_ndbcluster.cc
View file @
19d9bdbd
...
...
@@ -1106,6 +1106,16 @@ int ha_ndbcluster::build_index_list(Ndb *ndb, TABLE *tab, enum ILBP phase)
error
=
create_unique_index
(
unique_index_name
,
key_info
);
break
;
case
ORDERED_INDEX
:
if
(
key_info
->
algorithm
==
HA_KEY_ALG_HASH
)
{
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_UNSUPPORTED_EXTENSION
,
ER
(
ER_UNSUPPORTED_EXTENSION
),
"Ndb does not support non-unique "
"hash based indexes"
);
error
=
HA_ERR_UNSUPPORTED
;
break
;
}
error
=
create_ordered_index
(
index_name
,
key_info
);
break
;
default:
...
...
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