Skip to content

Commit d5c2831

Browse files
committed
for mariadb, use jq for simplifying when user requests nested fields, correct test criterion
1 parent b65dbe5 commit d5c2831

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/query.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,8 +1562,8 @@ docdb_query.src_mariadb <- function(src, key, query, ...) {
15621562
# special case: if no query and only root includeFields, no need for jq
15631563
if (!length(fldQ$queryCondition) &&
15641564
!length(fldQ$excludeFields) &&
1565-
any(length(fldQ$includeFields)) &&
1566-
!grepl(".", fldQ$includeFields, fixed = TRUE)) fldQ$includeFields <-
1565+
length(fldQ$includeFields) &&
1566+
!any(grepl(".", fldQ$includeFields, fixed = TRUE))) fldQ$includeFields <-
15671567
character(0L)
15681568
#
15691569
# special case: jq needed, _id not in excludeFields,

0 commit comments

Comments
 (0)