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 995c35852..a03a114c4 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 QSqlDriver::hasFeature( QSqlDriver::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 QSqlQuery::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 QSqlQuery::value() will only return NULLs. \section3 How to build the plugin on Unix/Linux @@ -710,11 +710,11 @@ public: ~QNullResult() {} protected: QVariant data( int ) { return QVariant(); } - 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; } QSqlRecord record() { return QSqlRecord(); } int size() { return 0; } int numRowsAffected() { return 0; } @@ -725,12 +725,12 @@ class QNullDriver : public QSqlDriver public: QNullDriver(): QSqlDriver() {} ~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() {} QSqlQuery createQuery() const { return QSqlQuery( new QNullResult( this ) ); } }; |
