diff options
author | mskold@mysql.com <> | 2005-08-01 11:52:07 +0200 |
---|---|---|
committer | mskold@mysql.com <> | 2005-08-01 11:52:07 +0200 |
commit | cc62018ff67f7f2ecd6e23462fc5af2676bc57de (patch) | |
tree | 723201633574926a3a3ba42b3ca5a0e332accb55 /sql/ha_ndbcluster.cc | |
parent | 0f0fb8a05a7a37604a8b030ec29556a1ead3f20c (diff) | |
parent | d969a9ab68f90a764fda806c45c030d15864e7fb (diff) | |
download | mariadb-git-cc62018ff67f7f2ecd6e23462fc5af2676bc57de.tar.gz |
Merge mysql.com:/usr/local/home/marty/MySQL/mysql-5.0-release
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 922a7be9921..37a3864a217 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -6353,12 +6353,14 @@ void ndb_serialize_cond(const Item *item, void *arg) // result type if (context->expecting(Item::FIELD_ITEM) && (context->expecting_field_result(field->result_type()) || - // Date and year can be written as strings + // Date and year can be written as string or int ((type == MYSQL_TYPE_TIME || type == MYSQL_TYPE_DATE || type == MYSQL_TYPE_YEAR || type == MYSQL_TYPE_DATETIME) - ? context->expecting_field_result(STRING_RESULT) : true)) && + ? (context->expecting_field_result(STRING_RESULT) || + context->expecting_field_result(INT_RESULT)) + : true)) && // Bit fields no yet supported in scan filter type != MYSQL_TYPE_BIT) { @@ -6426,8 +6428,8 @@ void ndb_serialize_cond(const Item *item, void *arg) } else { - DBUG_PRINT("info", ("Was not expecting field of type %u", - field->result_type())); + DBUG_PRINT("info", ("Was not expecting field of type %u(%u)", + field->result_type(), type)); context->supported= FALSE; } } |