Skip to content

Commit

Permalink
Merge pull request #116 from OHDSI/tc-lookup
Browse files Browse the repository at this point in the history
Fixes #115
  • Loading branch information
schuemie authored Nov 16, 2016
2 parents 7bde0f4 + 2461382 commit 406ac05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static void createExpectFunctions(List<String> r, int type, Database dat
testDefs.add(" if (is.null(" + rFieldName + ")) {");
testDefs.add(" whereClauses <- c(whereClauses, \"" + sqlFieldName + " IS NULL\")");
testDefs.add(" } else if (is(" + rFieldName + ", \"subQuery\")){");
testDefs.add(" whereClasues <- c(whereClasues, paste0(\"" + sqlFieldName + " = (\", as.character(" + rFieldName + "), \")\"))");
testDefs.add(" whereClauses <- c(whereClauses, paste0(\"" + sqlFieldName + " = (\", as.character(" + rFieldName + "), \")\"))");
testDefs.add(" } else {");
testDefs.add(" whereClauses <- c(whereClauses, paste0(\"" + sqlFieldName + " = '\", " + rFieldName + ",\"'\"))");
testDefs.add(" }");
Expand Down Expand Up @@ -206,7 +206,7 @@ private static void createLookupFunctions(List<String> r, Database database) {
testDefs.add(" if (is.null(" + rFieldName + ")) {");
testDefs.add(" whereClauses <- c(whereClauses, \"" + sqlFieldName + " IS NULL\")");
testDefs.add(" } else {");
testDefs.add(" whereClauses <- c(whereClauses, \"" + sqlFieldName + " = '\", " + rFieldName + ",\"'\")");
testDefs.add(" whereClauses <- c(whereClauses, paste0(\"" + sqlFieldName + " = '\", " + rFieldName + ",\"'\"))");
testDefs.add(" }");
testDefs.add(" }");
testDefs.add("");
Expand Down

0 comments on commit 406ac05

Please sign in to comment.