Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queryForLong from database failed: SELECT COUNT(*) FROM xxxx WHERE _Id = ? #149

Open
SunZeF opened this issue Oct 24, 2024 · 5 comments
Open

Comments

@SunZeF
Copy link

SunZeF commented Oct 24, 2024

Hello ,
There are comments that the table creation failed, and the version number needs to be upgraded or the app needs to be uninstalled and reinstalled ,Is there any other solution? For the code below
public void add(List bean) {
if (bean == null || bean.isEmpty()) {
return;
}
try {
for (xxxx entity : bean) {
noticeDao.createOrUpdate(entity);
}
} catch (Exception e) {
e.printStackTrace();
}
}

@j256
Copy link
Owner

j256 commented Oct 24, 2024

Sorry @SunZeF, I'm not an Android specialist so I have no idea what you are talking about. The version-number being upgraded is not a ORMLite error right? It seems like an Android problem so I would think that a SO post to https://android.stackexchange.com/ may be in order.

@ndawod
Copy link

ndawod commented Oct 24, 2024

@SunZeF when you say "version number", are you referring to the build number of the Android app? If yes, then it's outside the scope of OrmLite and it's just a matter of increasing that number in your build script/properties file.

@SunZeF
Copy link
Author

SunZeF commented Oct 25, 2024

Sorry @SunZeF, I'm not an Android specialist so I have no idea what you are talking about. The version-number being upgraded is not a ORMLite error right? It seems like an Android problem so I would think that a SO post to https://android.stackexchange.com/ may be in order.
all right thank

@SunZeF
Copy link
Author

SunZeF commented Oct 25, 2024

@SunZeF when you say "version number", are you referring to the build number of the Android app? If yes, then it's outside the scope of OrmLite and it's just a matter of increasing that number in your build script/properties file.

The version is 41 after the upgrade ,emmmm, a small number of mobile phones have individual library creation failures data cannot be stored

@ajeet147-cup
Copy link

75473992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants