I have migrated MySQL older version to v8.0.19 . In older version it worked fine, but now facing some issues with pool connection as below:
R SQL connection pool:
library(pool)
library(DBI)
library(RMariaDB)
pool = dbPool(
drv=MariaDB(),
dbname="mydb",
username="root",
password=Sys.getenv("MYSQL_PASSWORD"),
host="localhost",
sslmode = 'require',
port=3306
)
statement = paste0("select * from Employee where Id IN (", ids ,")")
con3 = poolCheckout(pool)
x = dbGetQuery(con3,statement) //Throwing Error here
poolReturn(con3)
But it is working when I changed same code to :
statement = paste0("select * from Employee where Id IN (", ids ,")")
con3 = poolCheckout(pool)
x = dbGetQuery(pool,statement) //Not getting any issue like this
poolReturn(con3)
Is it I am doing in wrong way?