summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <mskold/marty@mysql.com/linux.site>2007-01-08 11:18:24 +0100
committerunknown <mskold/marty@mysql.com/linux.site>2007-01-08 11:18:24 +0100
commita881afd1c0cbed356fa15020bbbf370ea22f2a94 (patch)
tree39cba59e5bdb063f43344c77f38e1a5d6c919340 /sql/ha_ndbcluster.cc
parent03f609cc3572a622ea71e70450b5ddbb67dd4b9b (diff)
parent672998ea5f3f9793f2203b12da1b6affbe40ae13 (diff)
downloadmariadb-git-a881afd1c0cbed356fa15020bbbf370ea22f2a94.tar.gz
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb sql/ha_ndbcluster.cc: Auto merged
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 107f21f28d2..f9984b27077 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -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: