We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee9dc9 commit 9489e7aCopy full SHA for 9489e7a
1 file changed
app/src/org/gnucash/android/db/DatabaseAdapter.java
@@ -62,7 +62,10 @@ public DatabaseAdapter(Context context) {
62
mDbHelper = new DatabaseHelper(context);
63
mContext = context.getApplicationContext();
64
open();
65
- createTempView();
+
66
+ if (mDb.getVersion() >= DatabaseSchema.SPLITS_DB_VERSION) {
67
+ createTempView();
68
+ }
69
}
70
71
/**
@@ -74,7 +77,10 @@ public DatabaseAdapter(SQLiteDatabase db) {
74
77
this.mContext = GnuCashApplication.getAppContext();
75
78
if (!db.isOpen() || db.isReadOnly())
76
79
throw new IllegalArgumentException("Database not open or is read-only. Require writeable database");
80
81
82
83
84
85
86
private void createTempView() {
0 commit comments