var client = new require("mysql-pool").MySQLPool({...});
client.query(
"SET @counter := 0, @type := 'asd'; select @counter, @type" ,
function (error, result, fields) {
if (error) {
throw error;
}else{
cb(result, fields);
}
});
(
query work just fine in workbench or dbForge, and mysql-pool also works, but only without @variable_name
)