diff options
author | unknown <mskold/marty@linux.site> | 2007-09-13 10:00:14 +0200 |
---|---|---|
committer | unknown <mskold/marty@linux.site> | 2007-09-13 10:00:14 +0200 |
commit | 39d845945dfba1a2695b3134310ace1e3ac1105b (patch) | |
tree | d3eb722eff48e4b5348ee63ae617201397aed96c /sql/ha_ndbcluster_cond.cc | |
parent | 435bad16e30fafc53fe6e3d20647f72171efc515 (diff) | |
parent | eacd5ec43ce3671e14f00558dbbba2df8539a7bf (diff) | |
download | mariadb-git-39d845945dfba1a2695b3134310ace1e3ac1105b.tar.gz |
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
sql/ha_ndbcluster_cond.cc:
Auto merged
Diffstat (limited to 'sql/ha_ndbcluster_cond.cc')
-rw-r--r-- | sql/ha_ndbcluster_cond.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster_cond.cc b/sql/ha_ndbcluster_cond.cc index c686e83504c..94342c6d2ad 100644 --- a/sql/ha_ndbcluster_cond.cc +++ b/sql/ha_ndbcluster_cond.cc @@ -46,6 +46,14 @@ void ndb_serialize_cond(const Item *item, void *arg) // Check if we are skipping arguments to a function to be evaluated if (context->skip) { + if (!item) + { + DBUG_PRINT("info", ("Unexpected mismatch of found and expected number of function arguments %u", context->skip)); + sql_print_error("ndb_serialize_cond: Unexpected mismatch of found and " + "expected number of function arguments %u", context->skip); + context->skip= 0; + DBUG_VOID_RETURN; + } DBUG_PRINT("info", ("Skiping argument %d", context->skip)); context->skip--; switch (item->type()) { |