@@ -477,7 +477,7 @@ void ODBC_SQL_ERROR(HENV henv, HDBC conn, HSTMT stmt, char *func)
477
477
} while ( SQL_SUCCEEDED ( ret ));
478
478
}
479
479
480
- void php3_odbc_fetch_attribs (INTERNAL_FUNCTION_PARAMETERS , int mode )
480
+ void php_odgbc_fetch_attribs (INTERNAL_FUNCTION_PARAMETERS , int mode )
481
481
{
482
482
odbc_result * result ;
483
483
pval * * pv_res , * * pv_flag ;
@@ -608,15 +608,15 @@ PHP_FUNCTION(odbc_close_all)
608
608
Handle binary column data */
609
609
PHP_FUNCTION (odbc_binmode )
610
610
{
611
- php3_odbc_fetch_attribs (INTERNAL_FUNCTION_PARAM_PASSTHRU ,0 );
611
+ php_odgbc_fetch_attribs (INTERNAL_FUNCTION_PARAM_PASSTHRU ,0 );
612
612
}
613
613
/* }}} */
614
614
615
615
/* {{{ proto int odbc_longreadlen(int result_id, int length)
616
616
Handle LONG columns */
617
617
PHP_FUNCTION (odbc_longreadlen )
618
618
{
619
- php3_odbc_fetch_attribs (INTERNAL_FUNCTION_PARAM_PASSTHRU ,1 );
619
+ php_odgbc_fetch_attribs (INTERNAL_FUNCTION_PARAM_PASSTHRU ,1 );
620
620
}
621
621
/* }}} */
622
622
@@ -650,7 +650,7 @@ PHP_FUNCTION(odbc_prepare)
650
650
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
651
651
if (rc == SQL_INVALID_HANDLE ) {
652
652
efree (result );
653
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_prepare " );
653
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_prepare " );
654
654
RETURN_FALSE ;
655
655
}
656
656
@@ -889,7 +889,7 @@ PHP_FUNCTION(odbc_cursor)
889
889
result -> stmt , state , & error , errormsg ,
890
890
sizeof (errormsg )- 1 , & errormsgsize );
891
891
if (!strncmp (state ,"S1015" ,5 )) {
892
- sprintf (cursorname ,"php3_curs_ %d" , (int )result -> stmt );
892
+ sprintf (cursorname ,"php_curs_ %d" , (int )result -> stmt );
893
893
if (SQLSetCursorName (result -> stmt ,cursorname ,SQL_NTS ) != SQL_SUCCESS ) {
894
894
ODBC_SQL_ERROR (result -> conn_ptr -> henv , result -> conn_ptr -> hdbc ,
895
895
result -> stmt , "SQLSetCursorName" );
@@ -2202,7 +2202,7 @@ PHP_FUNCTION(odbc_tables)
2202
2202
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2203
2203
if (rc == SQL_INVALID_HANDLE ) {
2204
2204
efree (result );
2205
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_tables " );
2205
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_tables " );
2206
2206
RETURN_FALSE ;
2207
2207
}
2208
2208
@@ -2284,7 +2284,7 @@ PHP_FUNCTION(odbc_columns)
2284
2284
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2285
2285
if (rc == SQL_INVALID_HANDLE ) {
2286
2286
efree (result );
2287
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_columns " );
2287
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_columns " );
2288
2288
RETURN_FALSE ;
2289
2289
}
2290
2290
@@ -2363,7 +2363,7 @@ PHP_FUNCTION(odbc_columnprivileges)
2363
2363
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2364
2364
if (rc == SQL_INVALID_HANDLE ) {
2365
2365
efree (result );
2366
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_columnprivileges " );
2366
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_columnprivileges " );
2367
2367
RETURN_FALSE ;
2368
2368
}
2369
2369
@@ -2461,7 +2461,7 @@ PHP_FUNCTION(odbc_foreignkeys)
2461
2461
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2462
2462
if (rc == SQL_INVALID_HANDLE ) {
2463
2463
efree (result );
2464
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_foreignkeys " );
2464
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_foreignkeys " );
2465
2465
RETURN_FALSE ;
2466
2466
}
2467
2467
@@ -2540,7 +2540,7 @@ PHP_FUNCTION(odbc_gettypeinfo)
2540
2540
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2541
2541
if (rc == SQL_INVALID_HANDLE ) {
2542
2542
efree (result );
2543
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_gettypeinfo " );
2543
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_gettypeinfo " );
2544
2544
RETURN_FALSE ;
2545
2545
}
2546
2546
@@ -2612,7 +2612,7 @@ PHP_FUNCTION(odbc_primarykeys)
2612
2612
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2613
2613
if (rc == SQL_INVALID_HANDLE ) {
2614
2614
efree (result );
2615
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_primarykeys " );
2615
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_primarykeys " );
2616
2616
RETURN_FALSE ;
2617
2617
}
2618
2618
@@ -2694,7 +2694,7 @@ PHP_FUNCTION(odbc_procedurecolumns)
2694
2694
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2695
2695
if (rc == SQL_INVALID_HANDLE ) {
2696
2696
efree (result );
2697
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_procedurecolumns " );
2697
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_procedurecolumns " );
2698
2698
RETURN_FALSE ;
2699
2699
}
2700
2700
@@ -2776,7 +2776,7 @@ PHP_FUNCTION(odbc_procedures)
2776
2776
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2777
2777
if (rc == SQL_INVALID_HANDLE ) {
2778
2778
efree (result );
2779
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_procedures " );
2779
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_procedures " );
2780
2780
RETURN_FALSE ;
2781
2781
}
2782
2782
@@ -2862,7 +2862,7 @@ PHP_FUNCTION(odbc_specialcolumns)
2862
2862
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2863
2863
if (rc == SQL_INVALID_HANDLE ) {
2864
2864
efree (result );
2865
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_specialcolumns " );
2865
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_specialcolumns " );
2866
2866
RETURN_FALSE ;
2867
2867
}
2868
2868
@@ -2947,7 +2947,7 @@ PHP_FUNCTION(odbc_statistics)
2947
2947
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
2948
2948
if (rc == SQL_INVALID_HANDLE ) {
2949
2949
efree (result );
2950
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_statistics " );
2950
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_statistics " );
2951
2951
RETURN_FALSE ;
2952
2952
}
2953
2953
@@ -3025,7 +3025,7 @@ PHP_FUNCTION(odbc_tableprivileges)
3025
3025
rc = SQLAllocStmt (conn -> hdbc , & (result -> stmt ));
3026
3026
if (rc == SQL_INVALID_HANDLE ) {
3027
3027
efree (result );
3028
- php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in php3_odbc_tableprivileges " );
3028
+ php_error (E_WARNING , "SQLAllocStmt error 'Invalid Handle' in odbc_tableprivileges " );
3029
3029
RETURN_FALSE ;
3030
3030
}
3031
3031
0 commit comments