Skip to content

Commit 0d5bd24

Browse files
committed
change variable name isCompat to isCompatible
1 parent d72504b commit 0d5bd24

4 files changed

+12
-12
lines changed

test/functional/sqlsrv/sqlsrv_ae_insert_sqltype_datetime.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ foreach ( $dataTypes as $dataType ) {
4444
{
4545
if ( $r === false )
4646
{
47-
$isCompat = false;
47+
$isCompatible = false;
4848
foreach ( $compatList[$dataType] as $compatType )
4949
{
5050
if ( $compatType == $sqlType )
51-
$isCompat = true;
51+
$isCompatible = true;
5252
}
5353
// 22018 is the SQLSTATE for any incompatible conversion errors
54-
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
54+
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
5555
{
5656
echo "$sqlType should be compatible with $dataType\n";
5757
$success = false;

test/functional/sqlsrv/sqlsrv_ae_insert_sqltype_money.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ foreach ( $dataTypes as $dataType ) {
3939
{
4040
if ( $r === false )
4141
{
42-
$isCompat = false;
42+
$isCompatible = false;
4343
foreach ( $compatList[$dataType] as $compatType )
4444
{
4545
if ( stripos( $compatType, $sqlType ) !== false )
46-
$isCompat = true;
46+
$isCompatible = true;
4747
}
4848
// 22018 is the SQLSTATE for any incompatible conversion errors
49-
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
49+
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
5050
{
5151
echo "$sqlType should be compatible with $dataType\n";
5252
$success = false;

test/functional/sqlsrv/sqlsrv_ae_insert_sqltype_numeric.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ foreach ( $dataTypes as $dataType ) {
4747
{
4848
if ( $r === false )
4949
{
50-
$isCompat = false;
50+
$isCompatibleible = false;
5151
foreach ( $compatList[$dataType] as $compatType )
5252
{
5353
if ( stripos( $compatType, $sqlType ) !== false )
54-
$isCompat = true;
54+
$isCompatibleible = true;
5555
}
5656
// 22018 is the SQLSTATE for any incompatible conversion errors
57-
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
57+
if ( $isCompatibleible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
5858
{
5959
echo "$sqlType should be compatible with $dataType\n";
6060
$success = false;

test/functional/sqlsrv/sqlsrv_ae_insert_sqltype_string.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ foreach ( $dataTypes as $dataType ) {
4141
{
4242
if ( !is_col_enc() )
4343
{
44-
$isCompat = false;
44+
$isCompatible = false;
4545
foreach ( $compatList[$dataType] as $compatType )
4646
{
4747
if ( stripos( $compatType, $sqlType ) !== false )
48-
$isCompat = true;
48+
$isCompatible = true;
4949
}
5050
// 22018 is the SQLSTATE for any incompatible conversion errors
51-
if ( $isCompat && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
51+
if ( $isCompatible && sqlsrv_errors()[0]['SQLSTATE'] == 22018 )
5252
{
5353
echo "$sqlType should be compatible with $dataType\n";
5454
$success = false;

0 commit comments

Comments
 (0)