On Fri, Dec 17, 2021 at 6:59 AM Remtech Industries <
remtechindustries...@gmail.com> wrote:

> When I use the .save_changes method with Sequel.pg_array(array), the
> changes are not saved to the database.
>
> patch '/issue/:id' do
>     issue = Issue[params[:id]]
>     issue.operator = Sequel.pg_array(params[:operators])
>     issue.save_changes
> end
>
> When I use .save, it works.
>

Is there a change in the value of operator?  Model#save_changes will not
issue an UPDATE statement if the value of one of the columns has not
changed.

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 sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSScWR%3DpN0f0GjbH6Z1ZxuuiEuyVBF-%2B1sz7t6WKDOy6xJw%40mail.gmail.com.

Reply via email to