ext/Transaction.c in rubyfb-0.5.9 vs ext/Transaction.c in rubyfb-0.6

- old
+ new

@@ -131,11 +131,11 @@ */ static VALUE commitTransaction(VALUE self) { TransactionHandle *transaction = NULL; Data_Get_Struct(self, TransactionHandle, transaction); - + /* Commit the transaction. */ if(transaction->handle != 0) { ISC_STATUS status[ISC_STATUS_LENGTH]; if(isc_commit_transaction(status, &transaction->handle) != 0) { @@ -304,11 +304,11 @@ "connections. Unable to determine which connection to " \ "execute the SQL statement through."); } connection = rb_ary_entry(list, 0); - return rb_execute_sql(connection, self, sql); + return rb_execute_sql(connection, sql, rb_ary_new(), self); } /** * This function creates a new Transaction object for a connection. This method @@ -478,9 +478,10 @@ /* Free the database details list if need be. */ if(teb != NULL) { free(teb); } + } /** * This function is used to integrate with the Ruby garbage collector to insure