tests/testthat/_snaps/translate-sql-string.md

sql_substr works as expected

Code
  substr("test")
Condition
  Error in `substr()`:
  ! `start` must be a whole number, not absent.
Code
  substr("test", 0)
Condition
  Error in `substr()`:
  ! `stop` must be a whole number, not absent.
Code
  substr("test", "x", 1)
Condition
  Error in `substr()`:
  ! `start` must be a whole number, not the string "x".
Code
  substr("test", 1, "x")
Condition
  Error in `substr()`:
  ! `stop` must be a whole number, not the string "x".


Try the dbplyr package in your browser

Any scripts or data that you put into this service are public.

dbplyr documentation built on Oct. 26, 2023, 9:06 a.m.