Use getPass instead of getPassword as in MySQL.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2016-03-07 08:21:53 +01:00
parent 3e47ae2fb1
commit b158ae11db
2 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ std::string PostgreSQLTest::getBase(){
std::string PostgreSQLTest::getUser(){
return "postgres";
}
std::string PostgreSQLTest::getPassword(){
std::string PostgreSQLTest::getPass(){
if (Environment::has("APPVEYOR"))
{
return "Password12!";
@ -123,7 +123,7 @@ void PostgreSQLTest::testConnectNoDB()
std::string dbConnString;
dbConnString += "host=" + getHost();
dbConnString += " user=" + getUser();
dbConnString += " password=" + getPassword();
dbConnString += " password=" + getPass();
try
{
@ -293,7 +293,7 @@ void PostgreSQLTest::testPostgreSQLOIDs()
142
};
_pExecutor->oidPostgreSQLTest(getHost(), getUser(), getPassword(), getBase(), getPort(), tableCreateString.c_str(), OIDArray);
_pExecutor->oidPostgreSQLTest(getHost(), getUser(), getPass(), getBase(), getPort(), tableCreateString.c_str(), OIDArray);
}
@ -1047,7 +1047,7 @@ CppUnit::Test* PostgreSQLTest::suite()
_dbConnString += "host=" + getHost();
_dbConnString += " user=" + getUser();
_dbConnString += " password=" + getPassword();
_dbConnString += " password=" + getPass();
_dbConnString += " dbname=" + getBase();
_dbConnString += " port=" + getPort();

View File

@ -151,7 +151,7 @@ private:
static std::string getPort();
static std::string getBase();
static std::string getUser();
static std::string getPassword();
static std::string getPass();
static std::string _dbConnString;
static Poco::SharedPtr<Poco::Data::Session> _pSession;