On Fri, Aug 04, 2017 at 03:35:36AM +0000, Sylvain Pointeau wrote: > Le ven. 4 août 2017 à 02:42, Nico Williams <n...@cryptonector.com> a écrit : > > > sqlite3_prepare_v2(db, "insert or replace into sp_sequence (seq_name, > > > seq_val, seq_inc) values (?, ?, ?)", -1, &stmt, 0); > > > > Should this init function re-initialize sequences if called more than > > once for the same sequence name? > > yes I did it on purpose
I think it would be too easy to reset sequences, but that's not something one wants to do often. > > Anyways, no change needed here. > > should I use the mutex lock to ensure atomicity? No. It can't help. As I said, no change is needed here. > > Nice! Did you test it? > > yes! I tested it with mingw compiler (and cmake), and the sqlite3 shell to > test the seq functions. > > I will do the code update and will probably create a github repository Excellent! > thanks a lot for your review. Thank you for taking this on! Nico -- _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users