I used RMySQL for import database, sometimes when I try to close the connection, I receive the following error:
Error in mysqlCloseConnection(conn, ...) : connection has pending rows (close open results set first)
I have no other ways of correcting this other than restarting the computer, anything I can do so solve this? Thanks!
We can use the method dbClearResult. Example:
dbClearResult(dbListResults(conn)[[1]])
1.4m articles
1.4m replys
5 comments
57.0k users