@@ -903,7 +903,7 @@ PHP_FUNCTION(odbc_prepare)
903
903
result -> numparams = 0 ;
904
904
result -> param_info = NULL ;
905
905
906
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
906
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
907
907
if (rc == SQL_INVALID_HANDLE ) {
908
908
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
909
909
zval_ptr_dtor (return_value );
@@ -1290,7 +1290,7 @@ PHP_FUNCTION(odbc_exec)
1290
1290
object_init_ex (return_value , odbc_result_ce );
1291
1291
result = Z_ODBC_RESULT_P (return_value );
1292
1292
1293
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
1293
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
1294
1294
if (rc == SQL_INVALID_HANDLE ) {
1295
1295
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
1296
1296
zval_ptr_dtor (return_value );
@@ -2812,7 +2812,7 @@ PHP_FUNCTION(odbc_tables)
2812
2812
object_init_ex (return_value , odbc_result_ce );
2813
2813
result = Z_ODBC_RESULT_P (return_value );
2814
2814
2815
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
2815
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
2816
2816
if (rc == SQL_INVALID_HANDLE ) {
2817
2817
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
2818
2818
zval_ptr_dtor (return_value );
@@ -2877,7 +2877,7 @@ PHP_FUNCTION(odbc_columns)
2877
2877
object_init_ex (return_value , odbc_result_ce );
2878
2878
result = Z_ODBC_RESULT_P (return_value );
2879
2879
2880
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
2880
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
2881
2881
if (rc == SQL_INVALID_HANDLE ) {
2882
2882
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
2883
2883
zval_ptr_dtor (return_value );
@@ -2945,7 +2945,7 @@ PHP_FUNCTION(odbc_columnprivileges)
2945
2945
object_init_ex (return_value , odbc_result_ce );
2946
2946
result = Z_ODBC_RESULT_P (return_value );
2947
2947
2948
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
2948
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
2949
2949
if (rc == SQL_INVALID_HANDLE ) {
2950
2950
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
2951
2951
zval_ptr_dtor (return_value );
@@ -3019,7 +3019,7 @@ PHP_FUNCTION(odbc_foreignkeys)
3019
3019
object_init_ex (return_value , odbc_result_ce );
3020
3020
result = Z_ODBC_RESULT_P (return_value );
3021
3021
3022
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3022
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3023
3023
if (rc == SQL_INVALID_HANDLE ) {
3024
3024
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3025
3025
zval_ptr_dtor (return_value );
@@ -3083,7 +3083,7 @@ PHP_FUNCTION(odbc_gettypeinfo)
3083
3083
object_init_ex (return_value , odbc_result_ce );
3084
3084
result = Z_ODBC_RESULT_P (return_value );
3085
3085
3086
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3086
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3087
3087
if (rc == SQL_INVALID_HANDLE ) {
3088
3088
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3089
3089
zval_ptr_dtor (return_value );
@@ -3138,7 +3138,7 @@ PHP_FUNCTION(odbc_primarykeys)
3138
3138
object_init_ex (return_value , odbc_result_ce );
3139
3139
result = Z_ODBC_RESULT_P (return_value );
3140
3140
3141
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3141
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3142
3142
if (rc == SQL_INVALID_HANDLE ) {
3143
3143
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3144
3144
zval_ptr_dtor (return_value );
@@ -3198,7 +3198,7 @@ PHP_FUNCTION(odbc_procedurecolumns)
3198
3198
object_init_ex (return_value , odbc_result_ce );
3199
3199
result = Z_ODBC_RESULT_P (return_value );
3200
3200
3201
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3201
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3202
3202
if (rc == SQL_INVALID_HANDLE ) {
3203
3203
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3204
3204
zval_ptr_dtor (return_value );
@@ -3259,7 +3259,7 @@ PHP_FUNCTION(odbc_procedures)
3259
3259
object_init_ex (return_value , odbc_result_ce );
3260
3260
result = Z_ODBC_RESULT_P (return_value );
3261
3261
3262
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3262
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3263
3263
if (rc == SQL_INVALID_HANDLE ) {
3264
3264
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3265
3265
zval_ptr_dtor (return_value );
@@ -3325,7 +3325,7 @@ PHP_FUNCTION(odbc_specialcolumns)
3325
3325
object_init_ex (return_value , odbc_result_ce );
3326
3326
result = Z_ODBC_RESULT_P (return_value );
3327
3327
3328
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3328
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3329
3329
if (rc == SQL_INVALID_HANDLE ) {
3330
3330
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3331
3331
zval_ptr_dtor (return_value );
@@ -3391,7 +3391,7 @@ PHP_FUNCTION(odbc_statistics)
3391
3391
object_init_ex (return_value , odbc_result_ce );
3392
3392
result = Z_ODBC_RESULT_P (return_value );
3393
3393
3394
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3394
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3395
3395
if (rc == SQL_INVALID_HANDLE ) {
3396
3396
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3397
3397
zval_ptr_dtor (return_value );
@@ -3452,7 +3452,7 @@ PHP_FUNCTION(odbc_tableprivileges)
3452
3452
object_init_ex (return_value , odbc_result_ce );
3453
3453
result = Z_ODBC_RESULT_P (return_value );
3454
3454
3455
- rc = PHP_ODBC_SQLALLOCSTMT ( conn -> hdbc , & (result -> stmt ));
3455
+ rc = SQLAllocHandle ( SQL_HANDLE_STMT , conn -> hdbc , & (result -> stmt ));
3456
3456
if (rc == SQL_INVALID_HANDLE ) {
3457
3457
php_error_docref (NULL , E_WARNING , "SQLAllocStmt error 'Invalid Handle'" );
3458
3458
zval_ptr_dtor (return_value );
0 commit comments