def execute_batch
    check_closed

    cnt = 0

    if @bstmt
      cnt += @bstmt.execute_batch.inject(:+) || 0
      @spool.give @bstmt
      @bstmt = nil
    end

    @pstmts.each do |pstmt|
      cnt += pstmt.execute_batch
    end

    cnt
  end
def execute_batch
    check_closed

    cnt = 0

    if @bstmt
      cnt += @bstmt.execute_batch.inject(:+) || 0
      @spool.give @bstmt
      @bstmt = nil
    end

    @pstmts.each do |pstmt|
      cnt += pstmt.execute_batch
    end

    cnt
  end
Executes batched statements including prepared statements. No effect when no statement is added
 @return [Fixnum] Sum of all update counts