Do the default argument stuff in python
--HG-- extra : convert_revision : 235f85e611a669401c6ddfbdf14244e80eb55888
This commit is contained in:
@@ -930,7 +930,7 @@ MySql::visit(const FormulaData &data)
|
||||
|
||||
bool
|
||||
initMySQL(string host, string user, string password, string database,
|
||||
string name, string sample, string project)
|
||||
string project, string name, string sample)
|
||||
{
|
||||
extern list<Output *> OutputList;
|
||||
static MySql mysql;
|
||||
@@ -938,9 +938,6 @@ initMySQL(string host, string user, string password, string database,
|
||||
if (mysql.connected())
|
||||
return false;
|
||||
|
||||
if (user.empty())
|
||||
user = username();
|
||||
|
||||
mysql.connect(host, user, password, database, name, sample, project);
|
||||
OutputList.push_back(&mysql);
|
||||
|
||||
|
||||
@@ -187,15 +187,15 @@ class MySql : public Output
|
||||
void configure(const FormulaData &data);
|
||||
};
|
||||
|
||||
bool initMySQL(std::string host, std::string database, std::string user = "",
|
||||
std::string passwd = "", std::string name = "test",
|
||||
std::string sample = "0", std::string project = "test");
|
||||
bool initMySQL(std::string host, std::string database, std::string user,
|
||||
std::string passwd, std::string project, std::string name,
|
||||
std::string sample);
|
||||
|
||||
#if !USE_MYSQL
|
||||
inline bool
|
||||
initMySQL(std::string host, std::string user, std::string password,
|
||||
std::string database, std::string name, std::string sample,
|
||||
std::string project)
|
||||
std::string database, std::string project, std::string name,
|
||||
std::string sample)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user