aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/database.cpp b/src/base/database.cpp
index ed19a399..96f40745 100644
--- a/src/base/database.cpp
+++ b/src/base/database.cpp
@@ -191,7 +191,7 @@ namespace usdx
sqlite3_stmt *sqliteStatement = sqlite_prepare("PRAGMA user_version;");
int rc = sqlite3_step(sqliteStatement);
- if (rc == SQLITE_DONE || rc == SQLITE_ROW) {
+ if (rc == SQLITE_ROW) {
result = sqlite3_column_int(sqliteStatement, 0);
}
@@ -405,7 +405,7 @@ namespace usdx
sqlite3_stmt *sqliteStatement = sqlite_prepare(sqlStatement);
int rc = sqlite3_step(sqliteStatement);
- if (rc == SQLITE_DONE || rc == SQLITE_ROW) {
+ if (rc == SQLITE_ROW) {
result = sqlite3_column_int(sqliteStatement, 0);
}