@@ -678,7 +678,7 @@ void AuthDatabasePostgreSQL::initStatements()
678
678
679
679
bool AuthDatabasePostgreSQL::getAuth (const std::string &name, AuthEntry &res)
680
680
{
681
- pingDatabase ();
681
+ verifyDatabase ();
682
682
683
683
const char *values[] = { name.c_str () };
684
684
PGresult *result = execPrepared (" auth_read" , 1 , values, false , false );
@@ -710,7 +710,7 @@ bool AuthDatabasePostgreSQL::getAuth(const std::string &name, AuthEntry &res)
710
710
711
711
bool AuthDatabasePostgreSQL::saveAuth (const AuthEntry &authEntry)
712
712
{
713
- pingDatabase ();
713
+ verifyDatabase ();
714
714
715
715
beginSave ();
716
716
@@ -732,7 +732,7 @@ bool AuthDatabasePostgreSQL::saveAuth(const AuthEntry &authEntry)
732
732
733
733
bool AuthDatabasePostgreSQL::createAuth (AuthEntry &authEntry)
734
734
{
735
- pingDatabase ();
735
+ verifyDatabase ();
736
736
737
737
std::string lastLoginStr = itos (authEntry.last_login );
738
738
const char *values[] = {
@@ -764,7 +764,7 @@ bool AuthDatabasePostgreSQL::createAuth(AuthEntry &authEntry)
764
764
765
765
bool AuthDatabasePostgreSQL::deleteAuth (const std::string &name)
766
766
{
767
- pingDatabase ();
767
+ verifyDatabase ();
768
768
769
769
const char *values[] = { name.c_str () };
770
770
execPrepared (" auth_delete" , 1 , values);
@@ -775,7 +775,7 @@ bool AuthDatabasePostgreSQL::deleteAuth(const std::string &name)
775
775
776
776
void AuthDatabasePostgreSQL::listNames (std::vector<std::string> &res)
777
777
{
778
- pingDatabase ();
778
+ verifyDatabase ();
779
779
780
780
PGresult *results = execPrepared (" auth_list_names" , 0 ,
781
781
NULL , NULL , NULL , false , false );
0 commit comments