fix char and nchar tests

This commit is contained in:
v-kaywon 2018-03-09 17:42:43 -08:00
parent bc387c8b4b
commit b65d34fb23
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ foreach($dataTypes as $dataType) {
}
}
} else {
if (strpos($sqltypeFull, "VARCHAR") !== false && $dataType == "char" && $m > $n && strpos($sqltypeFull, "max") === false) {
if (strpos($sqltypeFull, "VARCHAR") !== false && $dataType == "char" && $m > $n && strpos($sqltypeFull, "max") === false && $dir == "SQLSRV_PARAM_OUT") {
if ($r !== false) {
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
}

View file

@ -83,7 +83,7 @@ foreach($dataTypes as $dataType) {
}
}
} else {
if (strpos($sqltypeFull, "NVARCHAR") !== false && $dataType == "nchar" && $m > $n && strpos($sqltypeFull, "max") === false) {
if (strpos($sqltypeFull, "NVARCHAR") !== false && $dataType == "nchar" && $m > $n && strpos($sqltypeFull, "max") === false && $dir == "SQLSRV_PARAM_OUT") {
if ($r !== false) {
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
}