I noticed today that calling update on a single record does not commit
changes to the database. This seems like the same odd behaviour being
described above.
For example...
DB[:table_name].insert(name: "Foo")
=> {id:1, name: "Foo"}
DB[:table_name].first.update(name: "Bar")
=>{id: 1, name: "Bar"}
DB[:table_name].first
=>{id:1, name:"Foo"}
So, updating a record will return the record with the updated value, but
when reloading the record, it has reverted to it's previous state.
Is this expected behaviour? If so, why?
On Tuesday, 18 August 2015 19:20:01 UTC+1, Jeremy Evans wrote:
>
> Can you create a self contained example with an SQL log? The only thing I
> can think of is the p.user.save call isn't sending an UPDATE statement.
>
> Thanks,
> Jeremy
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.