diff options
author | Timothy Pearson <[email protected]> | 2014-09-03 18:37:52 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-09-03 18:37:52 -0500 |
commit | d8352f9db21a44c56049d6a5b2223ff888676286 (patch) | |
tree | d42d56c1dcbab9701a7ad8fac3e46f4031391aa4 /src/sql/drivers/sqlite3 | |
parent | ed5df1398ec8899bfea12d75f12a0f1474ef2258 (diff) | |
download | tqt3-d8352f9db21a44c56049d6a5b2223ff888676286.tar.gz tqt3-d8352f9db21a44c56049d6a5b2223ff888676286.zip |
Automated update from Qt3
Diffstat (limited to 'src/sql/drivers/sqlite3')
-rw-r--r-- | src/sql/drivers/sqlite3/qsql_sqlite3.cpp | 11 | ||||
-rw-r--r-- | src/sql/drivers/sqlite3/qsql_sqlite3.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/sql/drivers/sqlite3/qsql_sqlite3.cpp b/src/sql/drivers/sqlite3/qsql_sqlite3.cpp index a756c7da7..4d79cb4ea 100644 --- a/src/sql/drivers/sqlite3/qsql_sqlite3.cpp +++ b/src/sql/drivers/sqlite3/qsql_sqlite3.cpp @@ -336,6 +336,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/sql/drivers/sqlite3/qsql_sqlite3.h b/src/sql/drivers/sqlite3/qsql_sqlite3.h index 4d79176a7..facd85a1d 100644 --- a/src/sql/drivers/sqlite3/qsql_sqlite3.h +++ b/src/sql/drivers/sqlite3/qsql_sqlite3.h @@ -72,6 +72,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(); |