Skip to content

Commit

Permalink
dropped tables at end
Browse files Browse the repository at this point in the history
  • Loading branch information
david-puglielli committed May 25, 2018
1 parent 1747df1 commit ff0e460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
}
}

// Free the statement and close the connection
// Free the statement, drop the table, and close the connection
unset($stmt);
dropTable($conn, $tableName);
unset($conn);
} catch (Exception $e) {
$errors = $e->errorInfo;
Expand All @@ -132,7 +133,7 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
array('IMSSP', '-87'),
array('IMSSP', '-88'),
array('08001', '0'),
array('08001', '-1') // SSL error occurs in Ubuntu
array('08001', '-1') // SSL error occurs on some Linuxes
);
} else {
checkErrors(
Expand All @@ -144,7 +145,7 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
array('IMSSP', '-87'),
array('IMSSP', '-88'),
array('08001', '0'),
array('08001', '-1'), // SSL error occurs in Ubuntu
array('08001', '-1'), // SSL error occurs on some Linuxes
array('22018', '206')
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
}
}

// Free the statement and close the connection
// Drop the table and close the connection
dropTable($conn, $tableName);
sqlsrv_close($conn);
}
}
Expand Down

0 comments on commit ff0e460

Please sign in to comment.