Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- con = MDB.new('MystrixNWN').dbopen
- count = con[:PACK_ANIMALS].where(:ANIMAL_UUID => "").count
- result = con[:PACK_ANIMALS].where(:ANIMAL_UUID => "")
- result.each do |thing|
- p thing
- genUUID()
- myID = @uniqueid.to_s
- success = thing.update(:ANIMAL_UUID => myID)
- p thing
- p success
- end
- p count
- con.disconnect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement