diff options
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r-- | src/sql/qsqldatabase.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp index 606adb9f1..cc38f86fc 100644 --- a/src/sql/qsqldatabase.cpp +++ b/src/sql/qsqldatabase.cpp @@ -144,6 +144,7 @@ public: return FALSE; } void close() {} + bool ping() { return TRUE; } TQSqlQuery createQuery() const { return TQSqlQuery( new TQNullResult(this) ); } }; @@ -796,6 +797,15 @@ void TQSqlDatabase::close() } /*! + Sends a ping to the database server. +*/ + +bool TQSqlDatabase::ping() +{ + return d->driver->ping(); +} + +/*! Returns TRUE if the database connection is currently open; otherwise returns FALSE. */ |