Skip to content

Commit

Permalink
Fix for sqlserver throwing a error when getting a pidset and patient_set
Browse files Browse the repository at this point in the history
in the pdo
  • Loading branch information
mem61 committed Feb 27, 2019
1 parent 8db33ce commit 3d951c4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ public PidSet getPidByFact(List<String> panelSqlList,
int sqlParamCount = 0;
ResultSet resultSet = null;
for (String panelSql : panelSqlList) {
// if sqlserver and getting a pid than remove order by
if (serverType.equalsIgnoreCase(DAOFactoryHelper.SQLSERVER)) {
panelSql = panelSql.replace("ORDER BY obs_patient_num,obs_start_date,obs_concept_cd,obs_instance_num,obs_modifier_cd,rnum", "");

}
insertSql = " insert into "
+ tempTable
+ "(char_param1) select distinct obs_patient_num from ( "
Expand Down

0 comments on commit 3d951c4

Please sign in to comment.