From 729d452ff6a1c628719fce274eeafcbd8374cf96 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 20 Sep 2014 14:51:36 -0500 Subject: Fix FTBFS due to missing SQL driver method This resolves Bug 2117 --- src/svnqt/cache/sqlite3/qsql_sqlite3.cpp | 11 +++++++++++ src/svnqt/cache/sqlite3/qsql_sqlite3.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp index 9badbef..6160eae 100644 --- a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp +++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp @@ -320,6 +320,17 @@ void TQSQLite3Driver::close() } } +bool TQSQLite3Driver::ping() +{ + if ( !isOpen() ) { + return FALSE; + } + + // FIXME + // Implement ping if available + return TRUE; +} + TQSqlQuery TQSQLite3Driver::createQuery() const { return TQSqlQuery(new TQSQLite3Result(this)); diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.h b/src/svnqt/cache/sqlite3/qsql_sqlite3.h index 67baaa4..e739cda 100644 --- a/src/svnqt/cache/sqlite3/qsql_sqlite3.h +++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.h @@ -70,6 +70,7 @@ public: const TQString & host, int port ) { return open (db, user, password, host, port, TQString()); } void close(); + bool ping(); TQSqlQuery createQuery() const; bool beginTransaction(); bool commitTransaction(); -- cgit v1.2.1