diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-16 17:42:59 +0900 |
| commit | 4d495175043c399fdca6e1bb4c74ef176fc76fb4 (patch) | |
| tree | 119a6d76d177dade68b3744cb660fe26b33c9864 /doc/sql-driver.doc | |
| parent | cf2c8613706a3685266058db00c0e9f632c5bd24 (diff) | |
| download | tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.tar.gz tqt-4d495175043c399fdca6e1bb4c74ef176fc76fb4.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 ) ); } }; |
