Closed nbari closed 5 years ago
How could I run UNLOCK TABLES not getting an ERROR 1295, currently I am trying:
UNLOCK TABLES
ERROR 1295
if let Err(e) = pool.prep_exec("UNLOCK TABLES", ()) { eprintln!("{}", e); }
What is the way to run the queries not using prepared statements?
Hi.
First you need to get a specific connection from the pool (using Pool::get_conn). Then you can run text protocol queries using PooledConn::query.
Pool::get_conn
PooledConn::query
many thanks 👍
How could I run
UNLOCK TABLES
not getting anERROR 1295
, currently I am trying:What is the way to run the queries not using prepared statements?