# Doubles vs. integers
escape_ansi(1:5)
escape_ansi(c(1, 5.4))
# String vs known sql vs. sql identifier
escape_ansi("X")
escape_ansi(sql("X"))
escape_ansi(ident("X"))
# Escaping is idempotent
escape_ansi("X")
escape_ansi(escape_ansi("X"))
escape_ansi(escape_ansi(escape_ansi("X")))
Run the code above in your browser using DataLab