SONAR-4366 Make SQL query cross-DBMS (handling of boolean column)