Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. msvensson@pilot:~/mysql/7.0$ bzr diff
  2. === modified file 'sql/ha_ndbcluster_cond.cc'
  3. --- sql/ha_ndbcluster_cond.cc 2010-11-15 09:23:10 +0000
  4. +++ sql/ha_ndbcluster_cond.cc 2010-11-15 10:09:36 +0000
  5. @@ -1530,12 +1530,11 @@ int ha_ndbcluster_cond::generate_scan_fi
  6. const KEY_PART_INFO* key_part=key_info->key_part;
  7. if (key_part->null_bit != 0) // nullable (must be)
  8. {
  9. - const Field* field=key_part->field;
  10. const uchar* ptr= start_key->key;
  11. if (ptr[0] != 0) // null (in "null < x")
  12. {
  13. DBUG_PRINT("info", ("Generating ISNOTNULL filter for nullable %s",
  14. - field->field_name));
  15. + key_part->field->field_name));
  16. if (filter.isnotnull(key_part->fieldnr-1) == -1)
  17. DBUG_RETURN(1);
  18. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement