@@ -529,7 +529,7 @@ void php_odbc_fetch_attribs(INTERNAL_FUNCTION_PARAMETERS, int mode)
529529/* }}} */
530530
531531/* {{{ odbc_bindcols */
532- int odbc_bindcols (odbc_result * result )
532+ void odbc_bindcols (odbc_result * result )
533533{
534534 RETCODE rc ;
535535 int i ;
@@ -645,7 +645,6 @@ int odbc_bindcols(odbc_result *result)
645645 break ;
646646 }
647647 }
648- return 1 ;
649648}
650649/* }}} */
651650
@@ -855,10 +854,7 @@ PHP_FUNCTION(odbc_prepare)
855854 SQLNumResultCols (result -> stmt , & (result -> numcols ));
856855
857856 if (result -> numcols > 0 ) {
858- if (!odbc_bindcols (result )) {
859- efree (result );
860- RETURN_FALSE ;
861- }
857+ odbc_bindcols (result );
862858 } else {
863859 result -> values = NULL ;
864860 }
@@ -1057,10 +1053,7 @@ PHP_FUNCTION(odbc_execute)
10571053 SQLNumResultCols (result -> stmt , & (result -> numcols ));
10581054
10591055 if (result -> numcols > 0 ) {
1060- if (!odbc_bindcols (result )) {
1061- efree (result );
1062- RETVAL_FALSE ;
1063- }
1056+ odbc_bindcols (result );
10641057 } else {
10651058 result -> values = NULL ;
10661059 }
@@ -1253,10 +1246,7 @@ PHP_FUNCTION(odbc_exec)
12531246
12541247 /* For insert, update etc. cols == 0 */
12551248 if (result -> numcols > 0 ) {
1256- if (!odbc_bindcols (result )) {
1257- efree (result );
1258- RETURN_FALSE ;
1259- }
1249+ odbc_bindcols (result );
12601250 } else {
12611251 result -> values = NULL ;
12621252 }
@@ -2383,10 +2373,7 @@ PHP_FUNCTION(odbc_next_result)
23832373 SQLNumResultCols (result -> stmt , & (result -> numcols ));
23842374
23852375 if (result -> numcols > 0 ) {
2386- if (!odbc_bindcols (result )) {
2387- efree (result );
2388- RETVAL_FALSE ;
2389- }
2376+ odbc_bindcols (result );
23902377 } else {
23912378 result -> values = NULL ;
23922379 }
@@ -2752,10 +2739,7 @@ PHP_FUNCTION(odbc_tables)
27522739 SQLNumResultCols (result -> stmt , & (result -> numcols ));
27532740
27542741 if (result -> numcols > 0 ) {
2755- if (!odbc_bindcols (result )) {
2756- efree (result );
2757- RETURN_FALSE ;
2758- }
2742+ odbc_bindcols (result );
27592743 } else {
27602744 result -> values = NULL ;
27612745 }
@@ -2822,10 +2806,7 @@ PHP_FUNCTION(odbc_columns)
28222806 SQLNumResultCols (result -> stmt , & (result -> numcols ));
28232807
28242808 if (result -> numcols > 0 ) {
2825- if (!odbc_bindcols (result )) {
2826- efree (result );
2827- RETURN_FALSE ;
2828- }
2809+ odbc_bindcols (result );
28292810 } else {
28302811 result -> values = NULL ;
28312812 }
@@ -2886,10 +2867,7 @@ PHP_FUNCTION(odbc_columnprivileges)
28862867 SQLNumResultCols (result -> stmt , & (result -> numcols ));
28872868
28882869 if (result -> numcols > 0 ) {
2889- if (!odbc_bindcols (result )) {
2890- efree (result );
2891- RETURN_FALSE ;
2892- }
2870+ odbc_bindcols (result );
28932871 } else {
28942872 result -> values = NULL ;
28952873 }
@@ -2965,10 +2943,7 @@ PHP_FUNCTION(odbc_foreignkeys)
29652943 SQLNumResultCols (result -> stmt , & (result -> numcols ));
29662944
29672945 if (result -> numcols > 0 ) {
2968- if (!odbc_bindcols (result )) {
2969- efree (result );
2970- RETURN_FALSE ;
2971- }
2946+ odbc_bindcols (result );
29722947 } else {
29732948 result -> values = NULL ;
29742949 }
@@ -3026,10 +3001,7 @@ PHP_FUNCTION(odbc_gettypeinfo)
30263001 SQLNumResultCols (result -> stmt , & (result -> numcols ));
30273002
30283003 if (result -> numcols > 0 ) {
3029- if (!odbc_bindcols (result )) {
3030- efree (result );
3031- RETURN_FALSE ;
3032- }
3004+ odbc_bindcols (result );
30333005 } else {
30343006 result -> values = NULL ;
30353007 }
@@ -3087,10 +3059,7 @@ PHP_FUNCTION(odbc_primarykeys)
30873059 SQLNumResultCols (result -> stmt , & (result -> numcols ));
30883060
30893061 if (result -> numcols > 0 ) {
3090- if (!odbc_bindcols (result )) {
3091- efree (result );
3092- RETURN_FALSE ;
3093- }
3062+ odbc_bindcols (result );
30943063 } else {
30953064 result -> values = NULL ;
30963065 }
@@ -3151,10 +3120,7 @@ PHP_FUNCTION(odbc_procedurecolumns)
31513120 SQLNumResultCols (result -> stmt , & (result -> numcols ));
31523121
31533122 if (result -> numcols > 0 ) {
3154- if (!odbc_bindcols (result )) {
3155- efree (result );
3156- RETURN_FALSE ;
3157- }
3123+ odbc_bindcols (result );
31583124 } else {
31593125 result -> values = NULL ;
31603126 }
@@ -3214,10 +3180,7 @@ PHP_FUNCTION(odbc_procedures)
32143180 SQLNumResultCols (result -> stmt , & (result -> numcols ));
32153181
32163182 if (result -> numcols > 0 ) {
3217- if (!odbc_bindcols (result )) {
3218- efree (result );
3219- RETURN_FALSE ;
3220- }
3183+ odbc_bindcols (result );
32213184 } else {
32223185 result -> values = NULL ;
32233186 }
@@ -3285,10 +3248,7 @@ PHP_FUNCTION(odbc_specialcolumns)
32853248 SQLNumResultCols (result -> stmt , & (result -> numcols ));
32863249
32873250 if (result -> numcols > 0 ) {
3288- if (!odbc_bindcols (result )) {
3289- efree (result );
3290- RETURN_FALSE ;
3291- }
3251+ odbc_bindcols (result );
32923252 } else {
32933253 result -> values = NULL ;
32943254 }
@@ -3354,10 +3314,7 @@ PHP_FUNCTION(odbc_statistics)
33543314 SQLNumResultCols (result -> stmt , & (result -> numcols ));
33553315
33563316 if (result -> numcols > 0 ) {
3357- if (!odbc_bindcols (result )) {
3358- efree (result );
3359- RETURN_FALSE ;
3360- }
3317+ odbc_bindcols (result );
33613318 } else {
33623319 result -> values = NULL ;
33633320 }
@@ -3416,10 +3373,7 @@ PHP_FUNCTION(odbc_tableprivileges)
34163373 SQLNumResultCols (result -> stmt , & (result -> numcols ));
34173374
34183375 if (result -> numcols > 0 ) {
3419- if (!odbc_bindcols (result )) {
3420- efree (result );
3421- RETURN_FALSE ;
3422- }
3376+ odbc_bindcols (result );
34233377 } else {
34243378 result -> values = NULL ;
34253379 }
0 commit comments