Skip to content

Commit

Permalink
Rewrite delete() -> unset()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 6, 2015
1 parent ba68138 commit 6d75d92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/php/rdbms/mssql/MsSQLDBAdapter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function dbTableObjectFor($table, $database= null) {
$record['scale']
));
}
delete($q);
unset($q);

// This query is taken in part from sp_help (part of core sps from
// SQL Server/11.0.3.3 ESD#6/P-FREE/Linux Intel/Linux 2.2.14
Expand Down Expand Up @@ -248,7 +248,7 @@ public function getTables($database= null) {
}

} catch (\rdbms\SQLException $e) {
delete($t);
unset($t);
} ensure($e); {
$this->dropTemporaryIndexesTable();
if ($e) throw $e;
Expand All @@ -269,7 +269,7 @@ public function getTable($table, $database= null) {
$this->prepareTemporaryIndexesTable();
$t= $this->dbTableObjectFor($table, $database);
} catch (\rdbms\SQLException $e) {
delete($t);
unset($t);
} ensure($e); {
$this->dropTemporaryIndexesTable();
if ($e) throw $e;
Expand Down
6 changes: 3 additions & 3 deletions src/main/php/rdbms/sybase/SybaseDBAdapter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function dbTableObjectFor($table, $database= null) {
$record['scale']
));
}
delete($q);
unset($q);

// This query is taken in part from sp_help (part of core sps from
// SQL Server/11.0.3.3 ESD#6/P-FREE/Linux Intel/Linux 2.2.14
Expand Down Expand Up @@ -267,7 +267,7 @@ public function getTables($database= null) {
}

} catch (\rdbms\SQLException $e) {
delete($t);
unset($t);
} ensure($e); {
$this->dropTemporaryIndexesTable();
if ($e) throw $e;
Expand All @@ -288,7 +288,7 @@ public function getTable($table, $database= null) {
$this->prepareTemporaryIndexesTable();
$t= $this->dbTableObjectFor($table, $database);
} catch (\rdbms\SQLException $e) {
delete($t);
unset($t);
} ensure($e); {
$this->dropTemporaryIndexesTable();
if ($e) throw $e;
Expand Down

0 comments on commit 6d75d92

Please sign in to comment.