You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select
col1,
col2
from
my_table
where
col3 in @param
I tried:
> sql %>% sq_set(param = '(1,2,3)')
select
col1,
col2
from
my_table
where
col3 in '(1,2,3)'
and,
sql %>% sq_set(param = 1:3)
select
col1,
col2
from
my_table
where
col3 in 1
Warning message:
In gsub(paste0(prefix, pattern), value, query, perl = TRUE) :
argument 'replacement' has length > 1 and only the first element will be used
and,
> sql %>% sq_set(param = "1,2,3")
select
col1,
col2
from
my_table
where
col3 in '1,2,3'
None result in valid SQL.
There should be a way to do this, probably.
The text was updated successfully, but these errors were encountered:
Many times we have SQL like:
I tried:
and,
and,
None result in valid SQL.
There should be a way to do this, probably.
The text was updated successfully, but these errors were encountered: