Hello guys,
this might be a stupid question but I can't seem to make transactions work.
I am doing this.
db = Sequel.connect("mysql2://user:[email protected]/database")
db.transaction(rollback: :always) do
db[:table].insert(id: 1)
raise
end
Why do I end up with a new row in the table here? It's not rolled back.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/8888cf95-b6d2-4dae-9d86-5e82799e3ec2%40googlegroups.com.