Thread: Combined Sieve View Single Post
2020-12-09, 22:20   #3
SethTro

"Seth"
Apr 2019

269 Posts

Quote:
 Originally Posted by henryzz I am getting an error whenever it tries to access the database: For example at the end of combined_sieve: Code: Saving unknowns to 'unknowns/997_210_10000_1000_s15000_l1000M.txt' range INSERT failed 1: near "ON": syntax error
Can you check your sqlite3 version?

I'm using on conflict which I think was introduced in 3.24.

If you have version < 3.24 and updating isn't easy one hacky workaround is to just delete the "ON CONFLICT" lines https://github.com/sethtroisi/prime-....cpp#L336-L341 and https://github.com/sethtroisi/prime-....cpp#L295-L300