From 69e11af30748143cbf3ee00677b1a0516cd3fa77 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 26 Aug 2021 09:24:53 +0200 Subject: [PATCH] Fix sqlsrv test script --- scripts/tests/sqlsrv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/tests/sqlsrv b/scripts/tests/sqlsrv index afc53ea..6609305 100755 --- a/scripts/tests/sqlsrv +++ b/scripts/tests/sqlsrv @@ -29,11 +29,14 @@ sqlsrv_connect( 'PWD' => 'password', ] ); +$rc = 0; $errors = sqlsrv_errors(SQLSRV_ERR_ALL); if (is_array($errors)) { foreach ($errors as $error) { if (isset($error['message']) && stripos($error['message'], 'This extension requires the Microsoft ODBC Driver for SQL Server') !== false) { fwrite(STDERR, trim($error['message']) . "\n"); + $rc = 1; } } } +exit($rc);