Use
postgresqlExecStatement(con, "DELETE FROM foos WHERE id = $1 AND baz = $2", list(1, "bar"))
I always pass my parameters to be bound as a list since c
will force it into one mode. You also have to clear the results belonging to con
if this statement succeeds before you can use it again.
Also, please note hadley's comments to use the new package RPostgres
.