aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-10 21:46:06 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:44 +0100
commite2d74a920c3d6a8250d3b3e2f08d9f29f6d6cea7 (patch)
treede9681f07c42ef1c0418378f99e81fd3fe6409f8 /src
parent1aef9df295fb16940ce896b78618ef49423db5bd (diff)
downloadusdx-e2d74a920c3d6a8250d3b3e2f08d9f29f6d6cea7.tar.gz
usdx-e2d74a920c3d6a8250d3b3e2f08d9f29f6d6cea7.tar.xz
usdx-e2d74a920c3d6a8250d3b3e2f08d9f29f6d6cea7.zip
sqlite3_step have to returen SQLITE_ROW for fetching data
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);
}