InterSystems has corrected a defect that can cause an SQL query to return incorrect results.
The defect exists in the following products and any InterSystems offerings based on them.
Impacted versions are 2021.2, 2022.1.x, 2022.2, and 2022.3:
InterSystems IRIS®
InterSystems IRIS for Health™
HealthShare® Health Connect
Impacted version is 2022.2:
InterSystems HealthShare®
The issue can be triggered when SQL Runtime Plan Choice (RTPC) is enabled (the default) and the query contains a "truth value" WHERE ? = ?. When triggered, some predicates may not be evaluated correctly; this leads t

.png)

.png)
.png)
.png)





.png)