Browse Source

Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb

into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
pull/374/head
unknown 18 years ago
parent
commit
5a001065c4
  1. 8
      sql/ha_ndbcluster_cond.cc

8
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 // Check if we are skipping arguments to a function to be evaluated
if (context->skip) 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)); DBUG_PRINT("info", ("Skiping argument %d", context->skip));
context->skip--; context->skip--;
switch (item->type()) { switch (item->type()) {

Loading…
Cancel
Save