From: Date: January 4 2007 12:44pm Subject: bk commit into 5.1 tree (tomas:1.2083) BUG#24503 List-Archive: http://lists.mysql.com/commits/17621 X-Bug: 24503 Message-Id: <20070104114449.B92B964251@linux.local> Below is the list of changes that have just been committed into a local 5.1 repository of tomas. When tomas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2083 07/01/04 12:44:37 tomas@poseidon. +6 -0 ndb - bug#24503 Fix scan filter on bit types (note should probably be enabled in condition pushdown aswell) storage/ndb/src/ndbapi/ndberror.c 1.50 07/01/04 12:44:28 tomas@poseidon. +1 -1 Add new error code Remove unused error code storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp 1.22 07/01/04 12:44:28 tomas@poseidon. +10 -0 Add correct handling of unsupported type storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp 1.4 07/01/04 12:44:28 tomas@poseidon. +5 -0 Add new error code storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp 1.33 07/01/04 12:44:28 tomas@poseidon. +1 -0 Add new error code storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp 1.37 07/01/04 12:44:28 tomas@poseidon. +0 -1 remove unused error code storage/ndb/src/common/util/NdbSqlUtil.cpp 1.31 07/01/04 12:44:27 tomas@poseidon. +12 -7 Add support for comparing bit types remove debug printouts # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: tomas # Host: poseidon. # Root: /home/tomas/mysql-5.1-wl2325-5.0 --- 1.30/storage/ndb/src/common/util/NdbSqlUtil.cpp 2005-04-08 02:43:59 +02:00 +++ 1.31/storage/ndb/src/common/util/NdbSqlUtil.cpp 2007-01-04 12:44:27 +01:00 @@ -136,7 +136,7 @@ }, { // 22 Type::Bit, - NULL, + cmpBit, NULL }, { // 23 @@ -679,6 +679,17 @@ } int +NdbSqlUtil::cmpBit(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full) +{ + Uint32 n = (n1 < n2) ? n1 : n2; + char* c1 = (char*)p1; + char* c2 = (char*)p2; + int ret = memcmp(p1, p2, n); + return ret; +} + + +int NdbSqlUtil::cmpTime(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full) { if (n2 >= 3) { @@ -698,12 +709,6 @@ } // not yet -int -NdbSqlUtil::cmpBit(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full) -{ - assert(false); - return 0; -} int NdbSqlUtil::cmpLongvarchar(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2, bool full) --- 1.36/storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp 2006-10-10 16:13:27 +02:00 +++ 1.37/storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp 2007-01-04 12:44:28 +01:00 @@ -139,7 +139,6 @@ #define ZNOT_FOUND 626 #define ZALREADYEXIST 630 -#define ZINCONSISTENTHASHINDEX 892 #define ZNOTUNIQUE 893 #define ZINVALID_KEY 290 --- 1.32/storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp 2006-06-28 16:40:20 +02:00 +++ 1.33/storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp 2007-01-04 12:44:28 +01:00 @@ -196,6 +196,7 @@ #define ZTRY_TO_UPDATE_ERROR 888 #define ZCALL_ERROR 890 #define ZTEMPORARY_RESOURCE_FAILURE 891 +#define ZUNSUPPORTED_BRANCH 892 #define ZSTORED_SEIZE_ATTRINBUFREC_ERROR 873 // Part of Scan --- 1.3/storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp 2005-04-08 02:44:04 +02:00 +++ 1.4/storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp 2007-01-04 12:44:28 +01:00 @@ -444,6 +444,11 @@ }//if break; + case 40: + ljam(); + terrorCode = ZUNSUPPORTED_BRANCH; + break; + default: ndbrequire(false); break; --- 1.21/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp 2005-09-20 12:23:32 +02:00 +++ 1.22/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp 2007-01-04 12:44:28 +01:00 @@ -1869,6 +1869,11 @@ // NULL==NULL and NULL