diff options
author | unknown <mskold/marty@mysql.com/linux.site> | 2007-04-23 12:12:44 +0200 |
---|---|---|
committer | unknown <mskold/marty@mysql.com/linux.site> | 2007-04-23 12:12:44 +0200 |
commit | 417eba838417a6a5584a34fa84e0f8674a16d439 (patch) | |
tree | ebcca3dae6992075cb965eee2d4746dfe1970867 /sql/ha_ndbcluster_cond.cc | |
parent | c067b03c860b9c368b20daa27772358311cbd633 (diff) | |
download | mariadb-git-417eba838417a6a5584a34fa84e0f8674a16d439.tar.gz |
Changed void* to const NdbDictionary::Table*
Diffstat (limited to 'sql/ha_ndbcluster_cond.cc')
-rw-r--r-- | sql/ha_ndbcluster_cond.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/ha_ndbcluster_cond.cc b/sql/ha_ndbcluster_cond.cc index 43843de80df..88a14e10ab3 100644 --- a/sql/ha_ndbcluster_cond.cc +++ b/sql/ha_ndbcluster_cond.cc @@ -251,7 +251,7 @@ void ndb_serialize_cond(const Item *item, void *arg) */ if (context->table->s == field->table->s) { - const NDBTAB *tab= (const NDBTAB *) context->ndb_table; + const NDBTAB *tab= context->ndb_table; DBUG_PRINT("info", ("FIELD_ITEM")); DBUG_PRINT("info", ("table %s", tab->getName())); DBUG_PRINT("info", ("column %s", field->field_name)); @@ -907,7 +907,7 @@ void ndb_serialize_cond(const Item *item, void *arg) const COND* ha_ndbcluster_cond::cond_push(const COND *cond, - TABLE *table, NDBTAB *ndb_table) + TABLE *table, const NDBTAB *ndb_table) { DBUG_ENTER("cond_push"); Ndb_cond_stack *ndb_cond = new Ndb_cond_stack(); @@ -963,12 +963,11 @@ ha_ndbcluster_cond::cond_clear() bool ha_ndbcluster_cond::serialize_cond(const COND *cond, Ndb_cond_stack *ndb_cond, - TABLE *table, NDBTAB *ndb_table) + TABLE *table, const NDBTAB *ndb_table) { DBUG_ENTER("serialize_cond"); Item *item= (Item *) cond; - Ndb_cond_traverse_context context(table, (void *)ndb_table, - ndb_cond); + Ndb_cond_traverse_context context(table, ndb_table, ndb_cond); // Expect a logical expression context.expect(Item::FUNC_ITEM); context.expect(Item::COND_ITEM); |