Skip to content

Commit

Permalink
small fix for #328
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Dec 22, 2023
1 parent b86ee57 commit 11d05ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fetchLDM.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ fetchLDM <- function(x = NULL,
format_SQL_in_statement(layer_type),
ifelse(is.null(x), "", paste0(" AND ", bycol, " IN ", format_SQL_in_statement(x))),
ifelse(length(nt) == 0, "", paste0(" AND ", paste0(sapply(nt, function(b) paste0("IsNull(",b,".prep_code, '')")),
" IN ", format_SQL_in_statement(prep_code)), collapse = " AND ")))
" IN ", format_SQL_in_statement(prep_code), collapse = " AND "))))
} else {
layer_query <- sprintf(
"SELECT * FROM lab_layer WHERE lab_layer.layer_type IN %s %s",
Expand Down

0 comments on commit 11d05ef

Please sign in to comment.