diff options
Diffstat (limited to 'doc/sql-driver.doc')
-rw-r--r-- | doc/sql-driver.doc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/sql-driver.doc b/doc/sql-driver.doc index d64246d22..463c888dd 100644 --- a/doc/sql-driver.doc +++ b/doc/sql-driver.doc @@ -141,7 +141,7 @@ modified servers. If you have a recent client library and connect to a transaction-enabled MySQL server, a call to the TQSqlDriver::hasFeature( TQSqlDriver::Transactions ) function returns -TRUE and SQL transactions can be used. +true and SQL transactions can be used. If the plugin is compiled against MySQL 4.x client libraries, transactions are enabled by default. @@ -212,7 +212,7 @@ query to do this internally (see $TQTDIR/examples/sql/blob). \section3 Know problems When a query is in forward only mode a call to TQSqlQuery::last() will -position the query on the last record and return TRUE, but subsequent +position the query on the last record and return true, but subsequent calls to TQSqlQuery::value() will only return NULLs. \section3 How to build the plugin on Unix/Linux @@ -710,11 +710,11 @@ public: ~QNullResult() {} protected: TQVariant data( int ) { return TQVariant(); } - bool reset ( const TQString& ) { return FALSE; } - bool fetch( int ) { return FALSE; } - bool fetchFirst() { return FALSE; } - bool fetchLast() { return FALSE; } - bool isNull( int ) { return FALSE; } + bool reset ( const TQString& ) { return false; } + bool fetch( int ) { return false; } + bool fetchFirst() { return false; } + bool fetchLast() { return false; } + bool isNull( int ) { return false; } TQSqlRecord record() { return TQSqlRecord(); } int size() { return 0; } int numRowsAffected() { return 0; } @@ -725,12 +725,12 @@ class QNullDriver : public TQSqlDriver public: QNullDriver(): TQSqlDriver() {} ~QNullDriver() {} - bool hasFeature( DriverFeature ) const { return FALSE; } + bool hasFeature( DriverFeature ) const { return false; } bool open( const TQString&, const TQString&, const TQString&, const TQString&, - int ) { return FALSE; } + int ) { return false; } void close() {} TQSqlQuery createQuery() const { return TQSqlQuery( new QNullResult( this ) ); } }; |