Skip to content

Commit

Permalink
SQL like wildcard is % not * (tidyverse#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
shearerp authored and hadley committed Aug 29, 2016
1 parent e927d13 commit 607dd4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/translate-sql.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#' translate_sql(if (x > 5) "big" else "small")
#'
#' # Infix functions are passed onto SQL with % removed
#' translate_sql(first %like% "Had*")
#' translate_sql(first %like% "Had%")
#' translate_sql(first %is% NULL)
#' translate_sql(first %in% c("John", "Roger", "Robert"))
#'
Expand Down
2 changes: 1 addition & 1 deletion vignettes/databases.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Any function that dplyr doesn't know how to convert is left as is. This means th

```{r}
translate_sql(glob(x, y))
translate_sql(x %like% "ab*")
translate_sql(x %like% "ab%")
```

## Grouping
Expand Down

0 comments on commit 607dd4f

Please sign in to comment.