[GNC] gncJobNextID in gncJob.c not in gncJob.h

john jralls at ceridwen.us
Sun Aug 7 22:55:30 EDT 2022


All of the incrementFooID functions are declared in the respective private headers, so that functionality is not intended to be public API. The why is lost to history, those functions were created in a drive-by contribution.

Your workaround of writing directly to the database is ill-advised unless your script is going to create jobs and immediately exit. The engine loads the database into memory once at the beginning of the session and doesn't read it again, so any changes you make direct to the database like that are invisible to the current session.

Regards,
John Ralls


> On Aug 7, 2022, at 1:14 PM, Robert Simmons <rsimmons0 at gmail.com> wrote:
> 
> Little error there. I improved the query while writing: "This sets the Job
> ID counter to 3, but you would change that 3 to whatever the ID you want."
> should be "This increments the Job ID to the next"
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list