• unknown's avatar
    Fixed that NULL and 0 returns 0 instead of NULL · e01c75e4
    unknown authored
    This is coded to not cause a speed impact on top level AND expressions where we don't care if an AND expression returns 0 or NULL
    
    
    mysql-test/r/bdb.result:
      Fix results after serges last patch
    mysql-test/r/innodb.result:
      Fix results after serges last patch
    mysql-test/r/null.result:
      Update for new AND handling of NULL
    scripts/mysqld_safe.sh:
      Fix 'isroot' test to work even if user is not root
    sql/item.h:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/item_cmpfunc.cc:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/item_cmpfunc.h:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/sql_base.cc:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/sql_parse.cc:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/sql_select.cc:
      Fixed that NULL and 0 returns 0 instead of NULL
    sql/sql_yacc.yy:
      Fixed that NULL and 0 returns 0 instead of NULL
    e01c75e4
item_cmpfunc.cc 37.5 KB