#At file:///home/jonas/src/telco-6.2/ based on
revid:jonas@stripped
2924 Jonas Oreland 2009-05-15
ndb - bug#40709
Yet another fix, this time in ha_ndbcluster
make sure that fields in partioning function
are correctly marked using setPartitionKey(TRUE)
M sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc 2009-02-23 10:57:01 +0000
+++ b/sql/ha_ndbcluster.cc 2009-05-15 09:30:55 +0000
@@ -5265,6 +5265,11 @@ static int create_ndb_column(THD *thd,
// Set nullable and pk
col.setNullable(field->maybe_null());
col.setPrimaryKey(field->flags & PRI_KEY_FLAG);
+ if ((field->flags & FIELD_IN_PART_FUNC_FLAG) != 0)
+ {
+ col.setPartitionKey(TRUE);
+ }
+
// Set autoincrement
if (field->flags & AUTO_INCREMENT_FLAG)
{
Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20090515093055-c9zc871vplk2el9g.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-6.2 branch (jonas:2924) Bug#40709 | Jonas Oreland | 15 May 2009 |