Skip to content

Commit

Permalink
set to false when closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosdsanchez authored and mikeho committed Jun 10, 2010
1 parent 7cd0d32 commit ea7b146
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions includes/qcodo/_core/database/QMySqlDatabase.class.php
Expand Up @@ -93,6 +93,7 @@ public function InsertId($strTableName = null, $strColumnName = null) {

public function Close() {
mysql_close($this->objDb);
$this->blnConnectedFlag = false;
}

public function GetFieldsForTable($strTableName) {
Expand Down
1 change: 1 addition & 0 deletions includes/qcodo/_core/database/QMySqliDatabase.class.php
Expand Up @@ -135,6 +135,7 @@ public function InsertId($strTableName = null, $strColumnName = null) {

public function Close() {
$this->objMySqli->close();
$this->blnConnectedFlag = false;
}

public function TransactionBegin() {
Expand Down
1 change: 1 addition & 0 deletions includes/qcodo/_core/database/QPdoDatabase.class.php
Expand Up @@ -50,6 +50,7 @@ public function __get($strName) {

public function Close() {
$this->objPdo = null;
$this->blnConnectedFlag = false;
}

public function TransactionBegin() {
Expand Down
Expand Up @@ -267,6 +267,7 @@ public function InsertId($strTableName = null, $strColumnName = null) {

public function Close() {
pg_close($this->objPgSql);
$this->blnConnectedFlag = false;
}

public function TransactionBegin() {
Expand Down
1 change: 1 addition & 0 deletions includes/qcodo/_core/database/QSqlServerDatabase.class.php
Expand Up @@ -321,6 +321,7 @@ public function InsertId($strTableName = null, $strColumnName = null) {

public function Close() {
mssql_close($this->objMsSql);
$this->blnConnectedFlag = false;
}

public function TransactionBegin() {
Expand Down

0 comments on commit ea7b146

Please sign in to comment.