ext/Transaction.c in rubyfb-0.5.7 vs ext/Transaction.c in rubyfb-0.5.8

- old
+ new

@@ -304,28 +304,10 @@ "connections. Unable to determine which connection to " \ "execute the SQL statement through."); } connection = rb_ary_entry(list, 0); - statement = rb_statement_new(connection, self, sql, INT2FIX(3)); - results = rb_execute_statement(statement); - - if(results != Qnil && rb_obj_is_kind_of(results, rb_cInteger) == Qfalse) { - if(rb_block_given_p()) { - VALUE row = rb_funcall(results, rb_intern("fetch"), 0), - last = Qnil; - - while(row != Qnil) { - last = rb_yield(row); - row = rb_funcall(results, rb_intern("fetch"), 0); - } - rb_funcall(results, rb_intern("close"), 0); - results = last; - } - } - rb_statement_close(statement); - - return(results); + return rb_execute_sql(connection, self, sql); } /** * This function creates a new Transaction object for a connection. This method