android-sqlite-asset-helper icon indicating copy to clipboard operation
android-sqlite-asset-helper copied to clipboard

Newly created database is now identified by flag

Open rasmusson opened this issue 11 years ago • 5 comments

Newly created database is now identified by flag instead of looking if the version number is 0

rasmusson avatar Jan 20 '14 21:01 rasmusson

What do you think, can this be merged soon?

rasmusson avatar May 15 '14 19:05 rasmusson

What is the purpose of this patch? In other words, why does using this flag instead of checking !=0 make things better? Are there any bugs with the version check as is? Or what scenarios will be better with this change?

jon-adams avatar May 16 '14 16:05 jon-adams

I had an issue where the database version I was upgrading from was 0. With the old version no upgrade would be done

Stefan

On 16 May 2014 18:07, Jon Adams [email protected] wrote:

What is the purpose of this patch? In other words, why does using this flag instead of checking !=0 make things better? Are there any bugs with the version check as is? Or what scenarios will be better with this change?

— Reply to this email directly or view it on GitHubhttps://github.com/jgilfelt/android-sqlite-asset-helper/pull/30#issuecomment-43349230 .

rasmusson avatar May 16 '14 19:05 rasmusson

this is not an issue of the library database version number should start from 1, according to docs

biegleux avatar Apr 28 '15 12:04 biegleux

No but it can be a problem if you have an earlier DB with version 0, as in my case

Stefan

On 28 April 2015 at 14:40, Tibor [email protected] wrote:

this is not an issue of the library database version number should start from 1, according to docs

— Reply to this email directly or view it on GitHub https://github.com/jgilfelt/android-sqlite-asset-helper/pull/30#issuecomment-97048325 .

rasmusson avatar Apr 28 '15 13:04 rasmusson