[Pkg-owncloud-commits] [owncloud-client] 56/211: SQlite: Print versions we use
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit b285e98988a53269144f13d925261b6f6c4ed832
Author: Markus Goetz <markus at woboq.com>
Date: Sat Oct 11 17:33:08 2014 +0200
SQlite: Print versions we use
---
csync/src/csync_statedb.c | 8 ++++++++
src/mirall/syncjournaldb.cpp | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c
index f76cb17..fbc961b 100644
--- a/csync/src/csync_statedb.c
+++ b/csync/src/csync_statedb.c
@@ -225,6 +225,14 @@ int csync_statedb_load(CSYNC *ctx, const char *statedb, sqlite3 **pdb) {
csync_set_statedb_exists(ctx, 1);
}
+ /* Print out the version */
+ //
+ result = csync_statedb_query(db, "SELECT sqlite_version();");
+ if (result && result->count >= 1) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_NOTICE, "sqlite3 version \"%s\"", *result->vector);
+ }
+ c_strlist_destroy(result);
+
/* optimization for speeding up SQLite */
result = csync_statedb_query(db, "PRAGMA synchronous = NORMAL;");
c_strlist_destroy(result);
diff --git a/src/mirall/syncjournaldb.cpp b/src/mirall/syncjournaldb.cpp
index e5ff7fb..66977d7 100644
--- a/src/mirall/syncjournaldb.cpp
+++ b/src/mirall/syncjournaldb.cpp
@@ -123,6 +123,14 @@ bool SyncJournalDb::checkConnect()
}
QSqlQuery pragma1(_db);
+ pragma1.prepare("SELECT sqlite_version();");
+ if (!pragma1.exec()) {
+ return sqlFail("SELECT sqlite_version()", pragma1);
+ } else {
+ pragma1.next();
+ qDebug() << "sqlite3 version" << pragma1.value(0).toString();
+ }
+
pragma1.prepare("PRAGMA synchronous = 1;");
if (!pragma1.exec()) {
return sqlFail("Set PRAGMA synchronous", pragma1);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list