Project

General

Profile

Bug #9078

MySql backend c'tor dbhost parameter is passed by value instead of reference.

Added by Rathnadhar K V 27 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/20/2021
Due date:
% Done:

0%

Estimated time:

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

Also available in: Atom PDF