зеркало из https://github.com/microsoft/msphpsql.git
Tests updated
This commit is contained in:
Родитель
3cb84ee4ee
Коммит
b98b12965c
|
@ -26,7 +26,7 @@ function checkErrors($errors, ...$codes)
|
|||
if ($errors[0] != $code)
|
||||
{
|
||||
echo "Error: ";
|
||||
print_r($errors[$i/2][0]);
|
||||
print_r($errors[0]);
|
||||
echo "\nExpected: ";
|
||||
print_r($code);
|
||||
echo "\n";
|
||||
|
@ -36,7 +36,7 @@ function checkErrors($errors, ...$codes)
|
|||
if ($errors[1] != $code)
|
||||
{
|
||||
echo "Error: ";
|
||||
print_r($errors[$i/2][1]);
|
||||
print_r($errors[1]);
|
||||
echo "\nExpected: ";
|
||||
print_r($code);
|
||||
echo "\n";
|
||||
|
@ -171,12 +171,15 @@ for ($i=0; $i < sizeof($columnEncryption); ++$i) {
|
|||
else if ($m==3)
|
||||
checkErrors($errors, 'IMSSP', '-88');
|
||||
else
|
||||
{
|
||||
echo "i=$i j=$j k=$k m=$m failed connection\n";
|
||||
checkErrors($errors, 'CE275', '0');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
?>
|
||||
|
|
|
@ -130,7 +130,11 @@ for ($i=0; $i < sizeof($columnEncryption); ++$i) {
|
|||
else if ($m==3)
|
||||
checkErrors($errors, 'IMSSP', '-113');
|
||||
else
|
||||
{
|
||||
echo "i=$i j=$j k=$k m=$m failed connection\n";
|
||||
print_r(sqlsrv_errors());
|
||||
fatalError("Connection failed, unexpected connection string.\n");
|
||||
}
|
||||
} else {
|
||||
$columns = array();
|
||||
$insertQuery = "";
|
||||
|
|
Загрузка…
Ссылка в новой задаче