Bug #9078
openMySql backend c'tor dbhost parameter is passed by value instead of reference.
0%
Description
Namaskara,
In the Wt::Dbo::backend::MySQL .. C'tor
The dbhost parameter is currently getting passed by value.
Wt::Dbo::backend::MySQL::MySQL ( const std::string & db,
const std::string & dbuser = "root",
const std::string & dbpasswd = "",
const std::string dbhost = "localhost",
unsigned int dbport = 0,
const std::string & dbsocket = "/var/run/mysqld/mysqld.sock",
int fractionalSecondsPart = -1
)
Documentation page:
https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Dbo_1_1backend_1_1MySQL.html#a63610e88d55ae94d600efccfb2f9408a
It should be passed by reference as in:
Wt::Dbo::backend::MySQL::MySQL ( const std::string & db,
const std::string & dbuser = "root",
const std::string & dbpasswd = "",
const std::string & dbhost = "localhost",
unsigned int dbport = 0,
const std::string & dbsocket = "/var/run/mysqld/mysqld.sock",
int fractionalSecondsPart = -1
)
No data to display