From 2bf915c7f8e461b7297fd6ca3dfa5ccf32e6403d Mon Sep 17 00:00:00 2001 From: v-kaywon Date: Fri, 8 Dec 2017 16:52:41 -0800 Subject: [PATCH] shrink down error checks in sqlsrv_fetch_large_stream.phpt --- test/functional/sqlsrv/sqlsrv_fetch_large_stream.phpt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/functional/sqlsrv/sqlsrv_fetch_large_stream.phpt b/test/functional/sqlsrv/sqlsrv_fetch_large_stream.phpt index d22bce7d..3bb94841 100644 --- a/test/functional/sqlsrv/sqlsrv_fetch_large_stream.phpt +++ b/test/functional/sqlsrv/sqlsrv_fetch_large_stream.phpt @@ -40,9 +40,6 @@ if ($stream === false) { if (AE\isColEncrypted() && $error['SQLSTATE'] === "IMSSP" && $error['code'] === -109 && $error['message'] === "Connection with Column Encryption enabled does not support fetching stream. Please fetch the data as a string.") { $success = true; - } else { - var_dump($error); - fatalError("Failed to read field"); } } else { $value = ''; @@ -54,15 +51,13 @@ if ($stream === false) { fclose($stream); if (checkData($value, $inValue)) { // compare the data to see if they match! $success = true; - } else { - fatalError("Data corruption!\n"); } - } else { - fatalError("Error in getting stream!"); } } if ($success) { echo "Done.\n"; +} else { + fatalError("Failed to fetch stream "); } function checkData($actual, $expected)