@@ -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 :
@@ -1572,6 +1575,8 @@ PHP_FUNCTION(odbc_fetch_into)
1572
1575
}
1573
1576
if (result -> binmode == 1 ) sql_c_type = SQL_C_BINARY ;
1574
1577
1578
+ /* TODO: Check this is the intended behaviour */
1579
+ fallthrough ;
1575
1580
case SQL_LONGVARCHAR :
1576
1581
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1577
1582
case SQL_WLONGVARCHAR :
@@ -1796,6 +1801,9 @@ PHP_FUNCTION(odbc_result)
1796
1801
if (result -> binmode <= 0 ) {
1797
1802
break ;
1798
1803
}
1804
+ /* TODO: Check this is the intended behaviour */
1805
+ fallthrough ;
1806
+
1799
1807
case SQL_LONGVARCHAR :
1800
1808
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1801
1809
case SQL_WLONGVARCHAR :
@@ -1968,6 +1976,9 @@ PHP_FUNCTION(odbc_result_all)
1968
1976
break ;
1969
1977
}
1970
1978
if (result -> binmode <= 1 ) sql_c_type = SQL_C_BINARY ;
1979
+
1980
+ /* TODO: Check this is the intended behaviour */
1981
+ fallthrough ;
1971
1982
case SQL_LONGVARCHAR :
1972
1983
#if defined(ODBCVER ) && (ODBCVER >= 0x0300 )
1973
1984
case SQL_WLONGVARCHAR :
0 commit comments