From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/sql-driver.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/sql-driver.html') diff --git a/doc/html/sql-driver.html b/doc/html/sql-driver.html index 41bb1c06a..f44b24f9e 100644 --- a/doc/html/sql-driver.html +++ b/doc/html/sql-driver.html @@ -121,7 +121,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.

You can find information about MySQL on http://www.mysql.com @@ -178,7 +178,7 @@ query to do this internally (see $TQTDIR/examples/sql/blob).

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.

How to build the plugin on Unix/Linux

@@ -597,11 +597,11 @@ public: ~TQNullResult() {} 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; } @@ -612,12 +612,12 @@ class TQNullDriver : public TQSqlDriver public: TQNullDriver(): TQSqlDriver() {} ~TQNullDriver() {} - 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 TQNullResult( this ) ); } }; -- cgit v1.2.3