fix char and nchar tests
This commit is contained in:
parent
bc387c8b4b
commit
b65d34fb23
|
@ -83,7 +83,7 @@ foreach($dataTypes as $dataType) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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) {
|
if ($r !== false) {
|
||||||
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
|
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ foreach($dataTypes as $dataType) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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) {
|
if ($r !== false) {
|
||||||
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
|
echo "Conversions from $typeFull to output $sqltypeFull should not be supported\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue