ormlite-android icon indicating copy to clipboard operation
ormlite-android copied to clipboard

Fixed UpdateBuilder.update() / DeleteBuilder.delete() always return 0 when WAL enabled

Open TYZRPVX opened this issue 1 year ago • 2 comments

Fixed UpdateBuilder.update() / DeleteBuilder.delete() always return 0 when WAL enabled

  1. The root cause is the same as referred in https://github.com/j256/ormlite-android/pull/131
  2. Maybe reflection is necessary, execSQL returns void, but executeSql returns correct value
  3. Calling methods in a compatible way has been verified and correctness is guaranteed, if executeSql failed, call execSQL

Thanks for reviewing this PR

TYZRPVX avatar Mar 02 '23 09:03 TYZRPVX