From 7b43eed24a592feae9b6ba8fa338fb9737bf089f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 3 Sep 2014 18:37:06 -0500 Subject: Add ability to set reconnect flag on MySQL connections Add database server ping method to SQL classes --- src/sql/drivers/sqlite/qsql_sqlite.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/sql/drivers/sqlite/qsql_sqlite.cpp') diff --git a/src/sql/drivers/sqlite/qsql_sqlite.cpp b/src/sql/drivers/sqlite/qsql_sqlite.cpp index f8c7ffa..fea2a63 100644 --- a/src/sql/drivers/sqlite/qsql_sqlite.cpp +++ b/src/sql/drivers/sqlite/qsql_sqlite.cpp @@ -352,6 +352,17 @@ void QSQLiteDriver::close() } } +bool QSQLiteDriver::ping() +{ + if ( !isOpen() ) { + return FALSE; + } + + // FIXME + // Implement ping if available + return TRUE; +} + QSqlQuery QSQLiteDriver::createQuery() const { return QSqlQuery(new QSQLiteResult(this)); -- cgit v1.2.1