@@ -662,6 +662,8 @@ int odbc_bindcols(odbc_result *result)
662
662
#else
663
663
charextraalloc = 1 ;
664
664
#endif
665
+ /* TODO: Check this is the intended behaviour */
666
+ fallthrough ;
665
667
default :
666
668
rc = PHP_ODBC_SQLCOLATTRIBUTE (result -> stmt , (SQLUSMALLINT )(i + 1 ), colfieldid ,
667
669
NULL , 0 , NULL , & displaysize );
@@ -1418,6 +1420,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1418
1420
if (result -> binmode == 1 ) {
1419
1421
sql_c_type = SQL_C_BINARY ;
1420
1422
}
1423
+ fallthrough ;
1421
1424
case SQL_LONGVARCHAR :
1422
1425
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1423
1426
case SQL_WLONGVARCHAR :
@@ -1569,6 +1572,8 @@ PHP_FUNCTION(odbc_fetch_into)
1569
1572
}
1570
1573
if (result -> binmode == 1 ) sql_c_type = SQL_C_BINARY ;
1571
1574
1575
+ /* TODO: Check this is the intended behaviour */
1576
+ fallthrough ;
1572
1577
case SQL_LONGVARCHAR :
1573
1578
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1574
1579
case SQL_WLONGVARCHAR :
@@ -1790,6 +1795,9 @@ PHP_FUNCTION(odbc_result)
1790
1795
if (result -> binmode <= 0 ) {
1791
1796
break ;
1792
1797
}
1798
+ /* TODO: Check this is the intended behaviour */
1799
+ fallthrough ;
1800
+
1793
1801
case SQL_LONGVARCHAR :
1794
1802
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1795
1803
case SQL_WLONGVARCHAR :
@@ -1955,6 +1963,9 @@ PHP_FUNCTION(odbc_result_all)
1955
1963
break ;
1956
1964
}
1957
1965
if (result -> binmode <= 1 ) sql_c_type = SQL_C_BINARY ;
1966
+
1967
+ /* TODO: Check this is the intended behaviour */
1968
+ fallthrough ;
1958
1969
case SQL_LONGVARCHAR :
1959
1970
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1960
1971
case SQL_WLONGVARCHAR :
0 commit comments