summaryrefslogtreecommitdiffstats
path: root/doc/sql-driver.doc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
commitb87533f9904c10f24d6b2e8177c00944e3efe15b (patch)
treec1106a381c851b51e86004698457aef1211b77be /doc/sql-driver.doc
parent894037c3e68e1573a34183d936171f8cda5085f3 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/sql-driver.doc')
-rw-r--r--doc/sql-driver.doc18
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 ) ); }
};