FCModel icon indicating copy to clipboard operation
FCModel copied to clipboard

sqlite unique primary key generation bug

Open Paberu85 opened this issue 6 years ago • 0 comments

"continue" statement forces loop condition re-evaluation - while(conflict), this "conflict" value is initialized to false and does not change inside of loop body (loop will repeat itself only if condition is true, but condition is hardcoded false and will exit after first iteration) - loop will execute only once even if non unique primary key was generated, which will result in a sqlite crash (unique pk assertion failure)

Paberu85 avatar Nov 05 '19 15:11 Paberu85