summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqldatabase.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-03 18:37:52 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-03 18:37:52 -0500
commitd8352f9db21a44c56049d6a5b2223ff888676286 (patch)
treed42d56c1dcbab9701a7ad8fac3e46f4031391aa4 /src/sql/qsqldatabase.cpp
parented5df1398ec8899bfea12d75f12a0f1474ef2258 (diff)
downloadtqt3-d8352f9db21a44c56049d6a5b2223ff888676286.tar.gz
tqt3-d8352f9db21a44c56049d6a5b2223ff888676286.zip
Automated update from Qt3
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r--src/sql/qsqldatabase.cpp10
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.
*/