android.database.sqlite.SQLiteException: no such column: flag (code 1): , while compiling: SELECT * FROM images WHERE flag =1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by MikeB
, 1 year ago
no such column: flag (code 1): , while compiling: SELECT * FROM images WHERE flag =1
via GitHub by hssm
, 1 year ago
no such table: col (code 1): , while compiling: SELECT ver FROM col
via GitHub by icanos
, 6 months ago
no such column: group_all (Sqlite code 1): , while compiling: SELECT _id, address, person, thread_id FROM (SELECT thread_id AS tid, date * 1000 AS normalized_date, NULL AS time_body, text_only, NULL AS group_id, ct_t, msg_box, v, retr_txt_cs, ct_cls
via GitHub by ale5000-git
, 10 months ago
no such function: printf (code 1): , while compiling: SELECT null AS host,printf("wear://%s%s",host,path) AS path,data AS data,'' AS tags,assetname AS asset_key,assets_digest AS asset_id FROM dataItemsAndAssets WHERE packageName = ? AND signatureDigest = ? AND path LIKE ? AND deleted=0 AND assetsPresent !=0
via grman.at by Unknown author, 1 year ago
no such table: <TABLE> (code 1): , while compiling: SELECT <column list> FROM <TABLE>
via Stack Overflow by alphasigmakappa
, 2 years ago
no such table: past (code 1): , while compiling: select * from past
android.database.sqlite.SQLiteException: no such column: flag (code 1): , while compiling: SELECT * FROM images WHERE flag =1
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314)
at com.example.mike.bigone12.DataBaseHelper.getDataforTab1(DataBaseHelper.java:70)
at com.example.mike.bigone12.Tab1.onCreateView(Tab1.java:33)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2074)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758)
at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1632)
at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:637)
at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:166)
at android.support.v4.view.ViewPager.populate(ViewPager.java:1235)
at android.support.v4.view.ViewPager.populate(ViewPager.java:1083)
at android.view.View.measure(View.java:16518)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:455)
at android.view.View.measure(View.java:16518)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:16518)
at android.view.View.measure(View.java:16518)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:16518)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:16518)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:16518)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1921)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1114)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1296)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1001)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5680)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)

Users with the same issue

Once, 1 year ago
21 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
8 times, 3 months ago
Once, 1 year ago
110 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.