kymjs / KJFrameForAndroid

An Android library and includes ActivityFrame, KJHttp, KJBitmap, KJDataBase. KJFrameForAndroid is designed to wrap complexity of the Android native SDK and keep things simple.
https://www.kymjs.com/
Apache License 2.0
1.95k stars 787 forks source link

数据库升级默认方法有问题 #61

Open daelan-zhou opened 8 years ago

daelan-zhou commented 8 years ago

https://github.com/kymjs/KJFrameForAndroid/blob/master/KJFrame/kjframe/src/main/java/org/kymjs/kjframe/KJDB.java#L826 这里调用 dropDb() 方法,而方法里的 Cursor cursor = db.rawQuery( "SELECT name FROM sqlite_master WHERE type ='table'", null); db 这会儿还是null,会有异常