diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-09-03 18:37:52 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-09-03 18:37:52 -0500 |
commit | d8352f9db21a44c56049d6a5b2223ff888676286 (patch) | |
tree | d42d56c1dcbab9701a7ad8fac3e46f4031391aa4 /src/sql/drivers/ibase | |
parent | ed5df1398ec8899bfea12d75f12a0f1474ef2258 (diff) | |
download | tqt3-d8352f9db21a44c56049d6a5b2223ff888676286.tar.gz tqt3-d8352f9db21a44c56049d6a5b2223ff888676286.zip |
Automated update from Qt3
Diffstat (limited to 'src/sql/drivers/ibase')
-rw-r--r-- | src/sql/drivers/ibase/qsql_ibase.cpp | 11 | ||||
-rw-r--r-- | src/sql/drivers/ibase/qsql_ibase.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/sql/drivers/ibase/qsql_ibase.cpp b/src/sql/drivers/ibase/qsql_ibase.cpp index 6a1d0abfd..ee2976d68 100644 --- a/src/sql/drivers/ibase/qsql_ibase.cpp +++ b/src/sql/drivers/ibase/qsql_ibase.cpp @@ -848,6 +848,17 @@ void TQIBaseDriver::close() } } +bool TQIBaseDriver::ping() +{ + if ( !isOpen() ) { + return FALSE; + } + + // FIXME + // Implement ping if available + return TRUE; +} + TQSqlQuery TQIBaseDriver::createQuery() const { return TQSqlQuery(new TQIBaseResult(this)); diff --git a/src/sql/drivers/ibase/qsql_ibase.h b/src/sql/drivers/ibase/qsql_ibase.h index 45cb4b86b..023a6b028 100644 --- a/src/sql/drivers/ibase/qsql_ibase.h +++ b/src/sql/drivers/ibase/qsql_ibase.h @@ -94,6 +94,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(); |