]> granicus.if.org Git - php/commitdiff
Fixed ext/interbase build
authorKalle Sommer Nielsen <kalle@php.net>
Tue, 8 Sep 2009 01:44:37 +0000 (01:44 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Tue, 8 Sep 2009 01:44:37 +0000 (01:44 +0000)
ext/interbase/ibase_query.c

index 657ed580dd06bfe6b7cfa4f40e876f9964fc8f04..5488f167812210b68d5a6631b8beb667bf4843fa 100644 (file)
@@ -121,9 +121,11 @@ static void _php_ibase_free_xsqlda(XSQLDA *sqlda) /* {{{ */
 static void _php_ibase_free_stmt_handle(ibase_db_link *link, isc_stmt_handle stmt TSRMLS_DC) /* {{{ */
 {
        if (stmt) {
-               IBDEBUG("Dropping statement handle (free_stmt_handle)...");
                /* Only free statement if db-connection is still open */
                char db_items[] = {isc_info_page_size}, res_buf[40];
+
+               IBDEBUG("Dropping statement handle (free_stmt_handle)...");
+
                if (SUCCESS == isc_database_info(IB_STATUS, &link->handle, 
                                                        sizeof(db_items), db_items, sizeof(res_buf), res_buf)) {
                        if (isc_dsql_free_statement(IB_STATUS, &stmt, DSQL_drop)) {