From b87533f9904c10f24d6b2e8177c00944e3efe15b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 26 Nov 2025 15:11:22 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro --- doc/html/ntqsqldriver.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'doc/html/ntqsqldriver.html') diff --git a/doc/html/ntqsqldriver.html b/doc/html/ntqsqldriver.html index d95832b3d..204a13eea 100644 --- a/doc/html/ntqsqldriver.html +++ b/doc/html/ntqsqldriver.html @@ -54,7 +54,7 @@ SQL databases.
  • virtual TQSqlRecordInfo recordInfo ( const TQString & tablename ) const
  • virtual TQSqlRecordInfo recordInfo ( const TQSqlQuery & query ) const
  • virtual TQString nullText () const
  • -
  • virtual TQString formatValue ( const TQSqlField * field, bool trimStrings = FALSE ) const
  • +
  • virtual TQString formatValue ( const TQSqlField * field, bool trimStrings = false ) const
  • TQSqlError lastError () const
  • virtual bool hasFeature ( DriverFeature f ) const = 0
  • virtual bool open ( const TQString & db, const TQString & user = TQString::null, const TQString & password = TQString::null, const TQString & host = TQString::null, int port = -1 ) = 0
  • @@ -112,24 +112,24 @@ Destroys the object and frees any allocated resources.

    bool TQSqlDriver::beginTransaction () [virtual]

    Protected function which derived classes can reimplement to begin -a transaction. If successful, return TRUE, otherwise return FALSE. -The default implementation returns FALSE. +a transaction. If successful, return true, otherwise return false. +The default implementation returns false.

    See also commitTransaction() and rollbackTransaction().

    void TQSqlDriver::close () [pure virtual]

    Derived classes must reimplement this abstract virtual function in -order to close the database connection. Return TRUE on success, -FALSE on failure. +order to close the database connection. Return true on success, +false on failure.

    See also setOpen().

    bool TQSqlDriver::commitTransaction () [virtual]

    Protected function which derived classes can reimplement to commit -a transaction. If successful, return TRUE, otherwise return FALSE. -The default implementation returns FALSE. +a transaction. If successful, return true, otherwise return false. +The default implementation returns false.

    See also beginTransaction() and rollbackTransaction().

    TQSqlQuery TQSqlDriver::createQuery () const [pure virtual] @@ -139,7 +139,7 @@ The default implementation returns FALSE. reimplement this function and return a TQSqlQuery object appropriate for their database to the caller.

    -

    TQString TQSqlDriver::formatValue ( const TQSqlField * field, bool trimStrings = FALSE ) const [virtual] +

    TQString TQSqlDriver::formatValue ( const TQSqlField * field, bool trimStrings = false ) const [virtual]

    Returns a string representation of the field value for the database. This is used, for example, when constructing INSERT and @@ -152,7 +152,7 @@ according to the following rules: in single quotation marks, which is appropriate for many SQL databases. Any embedded single-quote characters are escaped (replaced with two single-quote characters). If trimStrings is -TRUE (the default is FALSE), all trailing whitespace is trimmed +true (the default is false), all trailing whitespace is trimmed from the field.

  • If field is date/time data, the value is formatted in ISO format and enclosed in single quotation marks. If the date/time @@ -168,21 +168,21 @@ and the result returned.

    bool TQSqlDriver::hasFeature ( DriverFeature f ) const [pure virtual]

    -

    Returns TRUE if the driver supports feature f; otherwise -returns FALSE. +

    Returns true if the driver supports feature f; otherwise +returns false.

    Note that some databases need to be open() before this can be determined.

    See also DriverFeature.

    bool TQSqlDriver::isOpen () const

    -Returns TRUE if the database connection is open; otherwise returns -FALSE. +Returns true if the database connection is open; otherwise returns +false.

    bool TQSqlDriver::isOpenError () const

    -Returns TRUE if the there was an error opening the database -connection; otherwise returns FALSE. +Returns true if the there was an error opening the database +connection; otherwise returns false.

    TQSqlError TQSqlDriver::lastError () const

    @@ -202,7 +202,7 @@ UPDATE statements. The default implementation returns the string

    Derived classes must reimplement this abstract virtual function in order to open a database connection on database db, using user name user, password password, host host and port port. -

    The function must return TRUE on success and FALSE on failure. +

    The function must return true on success and false on failure.

    See also setOpen().

    @@ -211,7 +211,7 @@ name user, password password, host host and port This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Open a database connection on database db, using user name user, password password, host host, port port and connection options connOpts. -

    Returns TRUE on success and FALSE on failure. +

    Returns true on success and false on failure.

    See also setOpen().

    TQSqlIndex TQSqlDriver::primaryIndex ( const TQString & tableName ) const [virtual] @@ -247,8 +247,8 @@ a table as parameter.

    bool TQSqlDriver::rollbackTransaction () [virtual]

    Protected function which derived classes can reimplement to -rollback a transaction. If successful, return TRUE, otherwise -return FALSE. The default implementation returns FALSE. +rollback a transaction. If successful, return true, otherwise +return false. The default implementation returns false.

    See also beginTransaction() and commitTransaction().

    void TQSqlDriver::setLastError ( const TQSqlError & e ) [virtual protected] @@ -267,8 +267,8 @@ Protected function which sets the open state of the database to o. Deri

    Protected function which sets the open error state of the database to e. Derived classes can use this function to report the -status of open(). Note that if e is TRUE the open state of the -database is set to closed (i.e. isOpen() returns FALSE). +status of open(). Note that if e is true the open state of the +database is set to closed (i.e. isOpen() returns false).

    See also open().

    TQStringList TQSqlDriver::tables ( const TQString & tableType ) const [virtual] -- cgit v1.2.3