add exception handling for pdo_transaction.phpt

This commit is contained in:
v-kaywon 2017-11-03 17:10:45 -07:00
parent a60992f8a5
commit e09dd9163d

View file

@ -10,6 +10,7 @@ require_once("MsCommon_mid-refactor.inc");
function deleteRows($conn, $tbname)
{
try {
if (!isColEncrypted()) {
$rows = $conn->exec("DELETE FROM $tbname WHERE col1 = 'a'");
} else {
@ -21,6 +22,9 @@ function deleteRows($conn, $tbname)
$rows = $stmt->rowCount();
}
return $rows;
} catch (PDOException $e) {
var_dump($e->errorInfo);
}
}
try {