class TestIbmDb2 < Test::Unit::TestCase

  def test_221
    assert_expect {
      for i in (1 .. 500)
        pconn[i] = DB2::pconnect(database, user, password)
      end
      
      if pconn[333]
        conn = pconn[222]
        stmt = DB2::exec pconn[333], "UPDATE animals SET name = 'flyweight' WHERE weight < 10.0"
        print "Number of affected rows: #{DB2::num_rows( stmt )}"
        DB2::close pconn[333]
      else
        print "Connection failed."
      end
    }
  end

end

__END__
Number of affected rows: 4
