diff options
author | unknown <mskold/marty@mysql.com/linux.site> | 2007-01-08 10:38:53 +0100 |
---|---|---|
committer | unknown <mskold/marty@mysql.com/linux.site> | 2007-01-08 10:38:53 +0100 |
commit | 672998ea5f3f9793f2203b12da1b6affbe40ae13 (patch) | |
tree | 84426ffcde7649b1afe45ef2d1965bb79e77bdd7 /sql/ha_ndbcluster.cc | |
parent | 6385ab6851171129cd1613b9a33968c196f1af00 (diff) | |
download | mariadb-git-672998ea5f3f9793f2203b12da1b6affbe40ae13.tar.gz |
bug#24820 CREATE INDEX ....USING HASH on NDB table creates ordered index, not HASH index: Added error checking
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 149a7c83895..34a3a001b21 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -1107,6 +1107,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: |