dropped tables at end

This commit is contained in:
David Puglielli 2018-05-25 15:19:20 -07:00
parent 1747df1ced
commit ff0e46071d
2 changed files with 6 additions and 4 deletions

View file

@ -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); unset($stmt);
dropTable($conn, $tableName);
unset($conn); unset($conn);
} catch (Exception $e) { } catch (Exception $e) {
$errors = $e->errorInfo; $errors = $e->errorInfo;
@ -132,7 +133,7 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
array('IMSSP', '-87'), array('IMSSP', '-87'),
array('IMSSP', '-88'), array('IMSSP', '-88'),
array('08001', '0'), array('08001', '0'),
array('08001', '-1') // SSL error occurs in Ubuntu array('08001', '-1') // SSL error occurs on some Linuxes
); );
} else { } else {
checkErrors( checkErrors(
@ -144,7 +145,7 @@ for ($i = 0; $i < sizeof($columnEncryption); ++$i) {
array('IMSSP', '-87'), array('IMSSP', '-87'),
array('IMSSP', '-88'), array('IMSSP', '-88'),
array('08001', '0'), array('08001', '0'),
array('08001', '-1'), // SSL error occurs in Ubuntu array('08001', '-1'), // SSL error occurs on some Linuxes
array('22018', '206') array('22018', '206')
); );
} }

View file

@ -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); sqlsrv_close($conn);
} }
} }