tomoakin / RPostgreSQL

Automatically exported from code.google.com/p/rpostgresql
64 stars 19 forks source link

dbGetQuery does not work with tryCatch #105

Open artemklevtsov opened 5 years ago

artemklevtsov commented 5 years ago

Not works with dbGetQuery:

Error in postgresqlExecStatement(conn, statement, ...) : 
  RS-DBI driver: (could not Retrieve the result : ОШИБКА:  столбец "aaa" не существует
LINE 1: SELECT aaa
               ^
)
NULL
Warning message:
In postgresqlQuickSQL(conn, statement, ...) :
  Could not create execute: SELECT aaa

Works with the dbSendQuery:

> tryCatch(dbSendQuery(db_con, "SELECT aaa"), error = function(e) NULL)
NULL