change variable name isCompat to isCompatible
This commit is contained in:
parent
d72504b730
commit
0d5bd2490b
|
@ -44,14 +44,14 @@ foreach ( $dataTypes as $dataType ) {
|
|||
{
|
||||
if ( $r === false )
|
||||
{
|
||||
$isCompat = false;
|
||||
$isCompatible = false;
|
||||
foreach ( $compatList[$dataType] as $compatType )
|
||||
{
|
||||
if ( $compatType == $sqlType )
|
||||
$isCompat = true;
|
||||
$isCompatible = true;
|
||||
}
|
||||
// 22018 is the SQLSTATE for any incompatible conversion errors
|
||||
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
{
|
||||
echo "$sqlType should be compatible with $dataType\n";
|
||||
$success = false;
|
||||
|
|
|
@ -39,14 +39,14 @@ foreach ( $dataTypes as $dataType ) {
|
|||
{
|
||||
if ( $r === false )
|
||||
{
|
||||
$isCompat = false;
|
||||
$isCompatible = false;
|
||||
foreach ( $compatList[$dataType] as $compatType )
|
||||
{
|
||||
if ( stripos( $compatType, $sqlType ) !== false )
|
||||
$isCompat = true;
|
||||
$isCompatible = true;
|
||||
}
|
||||
// 22018 is the SQLSTATE for any incompatible conversion errors
|
||||
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
{
|
||||
echo "$sqlType should be compatible with $dataType\n";
|
||||
$success = false;
|
||||
|
|
|
@ -47,14 +47,14 @@ foreach ( $dataTypes as $dataType ) {
|
|||
{
|
||||
if ( $r === false )
|
||||
{
|
||||
$isCompat = false;
|
||||
$isCompatibleible = false;
|
||||
foreach ( $compatList[$dataType] as $compatType )
|
||||
{
|
||||
if ( stripos( $compatType, $sqlType ) !== false )
|
||||
$isCompat = true;
|
||||
$isCompatibleible = true;
|
||||
}
|
||||
// 22018 is the SQLSTATE for any incompatible conversion errors
|
||||
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
if ( $isCompatibleible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
{
|
||||
echo "$sqlType should be compatible with $dataType\n";
|
||||
$success = false;
|
||||
|
|
|
@ -41,14 +41,14 @@ foreach ( $dataTypes as $dataType ) {
|
|||
{
|
||||
if ( !is_col_enc() )
|
||||
{
|
||||
$isCompat = false;
|
||||
$isCompatible = false;
|
||||
foreach ( $compatList[$dataType] as $compatType )
|
||||
{
|
||||
if ( stripos( $compatType, $sqlType ) !== false )
|
||||
$isCompat = true;
|
||||
$isCompatible = true;
|
||||
}
|
||||
// 22018 is the SQLSTATE for any incompatible conversion errors
|
||||
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
|
||||
{
|
||||
echo "$sqlType should be compatible with $dataType\n";
|
||||
$success = false;
|
||||
|
|
Loading…
Reference in a new issue