@@ -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 );
@@ -1419,6 +1421,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1419
1421
if (result -> binmode == 1 ) {
1420
1422
sql_c_type = SQL_C_BINARY ;
1421
1423
}
1424
+ fallthrough ;
1422
1425
case SQL_LONGVARCHAR :
1423
1426
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1424
1427
case SQL_WLONGVARCHAR :
@@ -1573,6 +1576,8 @@ PHP_FUNCTION(odbc_fetch_into)
1573
1576
}
1574
1577
if (result -> binmode == 1 ) sql_c_type = SQL_C_BINARY ;
1575
1578
1579
+ /* TODO: Check this is the intended behaviour */
1580
+ fallthrough ;
1576
1581
case SQL_LONGVARCHAR :
1577
1582
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1578
1583
case SQL_WLONGVARCHAR :
@@ -1797,6 +1802,9 @@ PHP_FUNCTION(odbc_result)
1797
1802
if (result -> binmode <= 0 ) {
1798
1803
break ;
1799
1804
}
1805
+ /* TODO: Check this is the intended behaviour */
1806
+ fallthrough ;
1807
+
1800
1808
case SQL_LONGVARCHAR :
1801
1809
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1802
1810
case SQL_WLONGVARCHAR :
@@ -1969,6 +1977,9 @@ PHP_FUNCTION(odbc_result_all)
1969
1977
break ;
1970
1978
}
1971
1979
if (result -> binmode <= 1 ) sql_c_type = SQL_C_BINARY ;
1980
+
1981
+ /* TODO: Check this is the intended behaviour */
1982
+ fallthrough ;
1972
1983
case SQL_LONGVARCHAR :
1973
1984
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1974
1985
case SQL_WLONGVARCHAR :
0 commit comments