mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-12 00:18:41 +00:00
fix formatting
This commit is contained in:
parent
a82e0383cb
commit
c090aedfda
|
|
@ -22,7 +22,7 @@ namespace DataStorage
|
||||||
namespace Database
|
namespace Database
|
||||||
{
|
{
|
||||||
struct ConnectionAbstract {
|
struct ConnectionAbstract {
|
||||||
void* con = NULL;
|
void *con = NULL;
|
||||||
|
|
||||||
DbConnectionConfig dbdata;
|
DbConnectionConfig dbdata;
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ namespace DataStorage
|
||||||
|
|
||||||
DatabaseStatus status = DatabaseStatus::CLOSED;
|
DatabaseStatus status = DatabaseStatus::CLOSED;
|
||||||
|
|
||||||
virtual void connect(DbConnectionConfig* dbdata = NULL)
|
virtual void connect(DbConnectionConfig *dbdata = NULL)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ namespace DataStorage
|
||||||
if (stat != ConnStatusType::CONNECTION_OK) {
|
if (stat != ConnStatusType::CONNECTION_OK) {
|
||||||
this->status = DatabaseStatus::MISSING_DATABASE;
|
this->status = DatabaseStatus::MISSING_DATABASE;
|
||||||
|
|
||||||
PQfinish((PGconn*)this->con);
|
PQfinish((PGconn *) this->con);
|
||||||
this->con = NULL;
|
this->con = NULL;
|
||||||
|
|
||||||
if (this->dbdata.password != NULL) {
|
if (this->dbdata.password != NULL) {
|
||||||
|
|
@ -83,7 +83,7 @@ namespace DataStorage
|
||||||
void close()
|
void close()
|
||||||
{
|
{
|
||||||
if (this->con != NULL) {
|
if (this->con != NULL) {
|
||||||
PQfinish((PGconn*)this->con);
|
PQfinish((PGconn *) this->con);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->con = NULL;
|
this->con = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user