-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update data:不能从其他类型更新到0 #32
Comments
我也发现了一个这样的问题。 |
设计如此,原因我以前在博客上也解释过,如果有更好的办法欢迎建议。我把博客上解释的贴过来一下。 |
我草 原来这么多人遇到跟我一样的问题 终于找到解释了 ContentValues values = new ContentValues(); 大概这么个写法 是可以的 |
对以下代码:
Video video = new Video();
video.setCategory(targetCategory);
video.update(id);
targetCategory是int,如果targetCategory==0,则无法从原有的category更新到0
The text was updated successfully, but these errors were encountered: