summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqldriver.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqsqldriver.3qt')
-rw-r--r--doc/man/man3/tqsqldriver.3qt26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/man/man3/tqsqldriver.3qt b/doc/man/man3/tqsqldriver.3qt
index 49949955a..5265c4c3e 100644
--- a/doc/man/man3/tqsqldriver.3qt
+++ b/doc/man/man3/tqsqldriver.3qt
@@ -61,7 +61,7 @@ Inherits TQObject.
.BI "virtual TQString \fBnullText\fR () const"
.br
.ti -1c
-.BI "virtual TQString \fBformatValue\fR ( const TQSqlField * field, bool trimStrings = FALSE ) const"
+.BI "virtual TQString \fBformatValue\fR ( const TQSqlField * field, bool trimStrings = false ) const"
.br
.ti -1c
.BI "TQSqlError \fBlastError\fR () const"
@@ -127,20 +127,20 @@ Default constructor. Creates a new driver with parent \fIparent\fR, called \fIna
.SH "TQSqlDriver::~TQSqlDriver ()"
Destroys the object and frees any allocated resources.
.SH "bool TQSqlDriver::beginTransaction ()\fC [virtual]\fR"
-Protected function which derived classes can reimplement to begin a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
+Protected function which derived classes can reimplement to begin a transaction. If successful, return true, otherwise return false. The default implementation returns false.
.PP
See also commitTransaction() and rollbackTransaction().
.SH "void TQSqlDriver::close ()\fC [pure virtual]\fR"
-Derived classes must reimplement this abstract virtual function in order to close the database connection. Return TRUE on success, FALSE on failure.
+Derived classes must reimplement this abstract virtual function in order to close the database connection. Return true on success, false on failure.
.PP
See also setOpen().
.SH "bool TQSqlDriver::commitTransaction ()\fC [virtual]\fR"
-Protected function which derived classes can reimplement to commit a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
+Protected function which derived classes can reimplement to commit a transaction. If successful, return true, otherwise return false. The default implementation returns false.
.PP
See also beginTransaction() and rollbackTransaction().
.SH "TQSqlQuery TQSqlDriver::createQuery () const\fC [pure virtual]\fR"
Creates an empty SQL result on the database. Derived classes must reimplement this function and return a TQSqlQuery object appropriate for their database to the caller.
-.SH "TQString TQSqlDriver::formatValue ( const TQSqlField * field, bool trimStrings = FALSE ) const\fC [virtual]\fR"
+.SH "TQString TQSqlDriver::formatValue ( const TQSqlField * field, bool trimStrings = false ) const\fC [virtual]\fR"
Returns a string representation of the \fIfield\fR value for the database. This is used, for example, when constructing INSERT and UPDATE statements.
.PP
The default implementation returns the value formatted as a string according to the following rules:
@@ -149,7 +149,7 @@ The default implementation returns the value formatted as a string according to
If \fIfield\fR is NULL, nullText() is returned.
.IP
.TP
-If \fIfield\fR is character data, the value is returned enclosed 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 \fItrimStrings\fR is TRUE (the default is FALSE), all trailing whitespace is trimmed from the field.
+If \fIfield\fR is character data, the value is returned enclosed 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 \fItrimStrings\fR is true (the default is false), all trailing whitespace is trimmed from the field.
.IP
.TP
If \fIfield\fR is date/time data, the value is formatted in ISO format and enclosed in single quotation marks. If the date/time data is invalid, nullText() is returned.
@@ -163,15 +163,15 @@ For any other field type toString() will be called on its value and the result r
.PP
See also TQVariant::toString().
.SH "bool TQSqlDriver::hasFeature ( DriverFeature f ) const\fC [pure virtual]\fR"
-Returns TRUE if the driver supports feature \fIf\fR; otherwise returns FALSE.
+Returns true if the driver supports feature \fIf\fR; otherwise returns false.
.PP
Note that some databases need to be open() before this can be determined.
.PP
See also DriverFeature.
.SH "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.
.SH "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.
.SH "TQSqlError TQSqlDriver::lastError () const"
Returns a TQSqlError object which contains information about the last error that occurred on the database.
.SH "TQString TQSqlDriver::nullText () const\fC [virtual]\fR"
@@ -179,7 +179,7 @@ Returns a string representation of the NULL value for the database. This is used
.SH "bool TQSqlDriver::open ( const TQString & db, const TQString & user = TQString::null, const TQString & password = TQString::null, const TQString & host = TQString::null, int port = -1 )\fC [pure virtual]\fR"
Derived classes must reimplement this abstract virtual function in order to open a database connection on database \fIdb\fR, using user name \fIuser\fR, password \fIpassword\fR, host \fIhost\fR and port \fIport\fR.
.PP
-The function \fImust\fR return TRUE on success and FALSE on failure.
+The function \fImust\fR return true on success and false on failure.
.PP
See also setOpen().
.SH "bool TQSqlDriver::open ( const TQString & db, const TQString & user, const TQString & password, const TQString & host, int port, const TQString & connOpts )"
@@ -187,7 +187,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
.PP
Open a database connection on database \fIdb\fR, using user name \fIuser\fR, password \fIpassword\fR, host \fIhost\fR, port \fIport\fR and connection options \fIconnOpts\fR.
.PP
-Returns TRUE on success and FALSE on failure.
+Returns true on success and false on failure.
.PP
See also setOpen().
.SH "TQSqlIndex TQSqlDriver::primaryIndex ( const TQString & tableName ) const\fC [virtual]\fR"
@@ -205,7 +205,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
.PP
Returns a TQSqlRecordInfo object with meta data for the TQSqlQuery \fIquery\fR. Note that this overloaded function may return less information than the recordInfo() function which takes the name of a table as parameter.
.SH "bool TQSqlDriver::rollbackTransaction ()\fC [virtual]\fR"
-Protected function which derived classes can reimplement to rollback a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
+Protected function which derived classes can reimplement to rollback a transaction. If successful, return true, otherwise return false. The default implementation returns false.
.PP
See also beginTransaction() and commitTransaction().
.SH "void TQSqlDriver::setLastError ( const TQSqlError & e )\fC [virtual protected]\fR"
@@ -217,7 +217,7 @@ Protected function which sets the open state of the database to \fIo\fR. Derived
.PP
See also open() and setOpenError().
.SH "void TQSqlDriver::setOpenError ( bool e )\fC [virtual protected]\fR"
-Protected function which sets the open error state of the database to \fIe\fR. Derived classes can use this function to report the status of open(). Note that if \fIe\fR is TRUE the open state of the database is set to closed (i.e. isOpen() returns FALSE).
+Protected function which sets the open error state of the database to \fIe\fR. Derived classes can use this function to report the status of open(). Note that if \fIe\fR is true the open state of the database is set to closed (i.e. isOpen() returns false).
.PP
See also open().
.SH "TQStringList TQSqlDriver::tables ( const TQString & tableType ) const\fC [virtual]\fR"