SAP Knowledge Base Article - Preview

2388660 - incorrect result when using ansinull, OR and IN clause - SAP ASE

Symptom

  • without statistics optimizer uses OR strategy
  • with ansinull is off, incorrect rows will be returned
  • with ansinull is on, no row will be returned
  • with statistics optimizer uses a plan nested loop
  • with ansinull off, 0 row will be returned
  • with ansinull on, 0 row will be returned
  • special OR plan is chosen for a join under the OR over two nullable columns
  • both columns have null values

 


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE)
  • Dataserver

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0

Keywords

ansinull, null value, OR strategy, IN clause, inconsistent, incorrect, wrong, result, CR762178, CR#762178, 762178 , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.