List:Commits« Previous MessageNext Message »
From:jonas Date:May 29 2007 2:34pm
Subject:bk commit into 5.1 tree (jonas:1.2148) BUG#24568
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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@stripped, 2007-05-29 14:34:55+02:00, jonas@stripped +1 -0
  ndb - bug#24568 patch 2 (isnull/isnotnull) wl2325-5.0

  storage/ndb/src/ndbapi/NdbScanFilter.cpp@stripped, 2007-05-29 14:34:54+02:00,
jonas@stripped +8 -2
    ndb - bug#24568 patch 2 (isnull/isnotnull) wl2325-5.0

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/drop5

--- 1.10/storage/ndb/src/ndbapi/NdbScanFilter.cpp	2007-05-29 14:34:58 +02:00
+++ 1.11/storage/ndb/src/ndbapi/NdbScanFilter.cpp	2007-05-29 14:34:58 +02:00
@@ -328,12 +328,18 @@
 
 int
 NdbScanFilter::isnull(int AttrId){
-  return m_impl.cond_col(Interpreter::IS_NULL, AttrId);
+  if(m_impl.m_negative == 1)
+    return m_impl.cond_col(Interpreter::IS_NOT_NULL, AttrId);
+  else
+    return m_impl.cond_col(Interpreter::IS_NULL, AttrId);
 }
 
 int
 NdbScanFilter::isnotnull(int AttrId){
-  return m_impl.cond_col(Interpreter::IS_NOT_NULL, AttrId);
+  if(m_impl.m_negative == 1)
+    return m_impl.cond_col(Interpreter::IS_NULL, AttrId);
+  else
+    return m_impl.cond_col(Interpreter::IS_NOT_NULL, AttrId);
 }
 
 struct tab3 {
Thread
bk commit into 5.1 tree (jonas:1.2148) BUG#24568jonas29 May