Re: Hooks are ignored using add_ methods.

2022-06-07 Thread Jeremy Evans
On Tue, Jun 7, 2022 at 8:05 AM Michał Gilewski wrote: > Hi, I'm trying to create a simple plugin that should set the value for the > column for the Sequel::Model. I noticed that when I'm trying to assign > records using add_ method all the hooks are omitted for the join model. > It's

Re: select sum as

2022-06-07 Thread Jeremy Evans
On Mon, Jun 6, 2022 at 10:06 PM Thiebo wrote: > Hello, > > I'm trying to do this SQL request (postgresql) : > > select SUM (montant) AS solde FROM entrees WHERE account_id = 1 and > date_de_valeur >= '2022-02-01' and date_de_valeur < '2022-03-01' > > Reading the documentation on virtual rows, I

Hooks are ignored using add_ methods.

2022-06-07 Thread Michał Gilewski
Hi, I'm trying to create a simple plugin that should set the value for the column for the Sequel::Model. I noticed that when I'm trying to assign records using add_ method all the hooks are omitted for the join model. It's intentional? There is any way to catch any hook for that record? user =

Re: Hooks are ignored using add_ methods.

2022-06-07 Thread Michał Gilewski
Oh crap, got it. Thank you, Jeremy. wtorek, 7 czerwca 2022 o 17:11:22 UTC+2 Jeremy Evans napisał(a): > On Tue, Jun 7, 2022 at 8:05 AM Michał Gilewski > wrote: > >> Hi, I'm trying to create a simple plugin that should set the value for >> the column for the Sequel::Model. I noticed that when

Re: select sum as

2022-06-07 Thread Thiebo
I'm very sorry Jeremy. That silly typo of mine was the only issued. I shouldn't have polluted this group with that. It was the difference in result. Best, Thiebo Le mardi 7 juin 2022 à 16:48:39 UTC+2, Jeremy Evans a écrit : > On Mon, Jun 6, 2022 at 10:06 PM Thiebo wrote: > >> Hello, >> >>