summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqlquery.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-28 10:17:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-28 10:17:01 +0900
commit5fffa30386502b5423e45c2ed5e6af756b11c7b4 (patch)
treefa17e10b048e8e13433b861cbe98cf895b2324c7 /doc/man/man3/tqsqlquery.3qt
parent04913ce7a46fd027856e83a96205fdc388742a19 (diff)
downloadtqt-5fffa30386502b5423e45c2ed5e6af756b11c7b4.tar.gz
tqt-5fffa30386502b5423e45c2ed5e6af756b11c7b4.zip
Rename nt* sql related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqsqlquery.3qt')
-rw-r--r--doc/man/man3/tqsqlquery.3qt172
1 files changed, 86 insertions, 86 deletions
diff --git a/doc/man/man3/tqsqlquery.3qt b/doc/man/man3/tqsqlquery.3qt
index 682b1639a..85fa5f032 100644
--- a/doc/man/man3/tqsqlquery.3qt
+++ b/doc/man/man3/tqsqlquery.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QSqlQuery 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQSqlQuery 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,31 +7,31 @@
.ad l
.nh
.SH NAME
-QSqlQuery \- Means of executing and manipulating SQL statements
+TQSqlQuery \- Means of executing and manipulating SQL statements
.SH SYNOPSIS
-\fC#include <ntqsqlquery.h>\fR
+\fC#include <tqsqlquery.h>\fR
.PP
-Inherited by QSqlCursor.
+Inherited by TQSqlCursor.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQSqlQuery\fR ( QSqlResult * r )"
+.BI "\fBQSqlQuery\fR ( TQSqlResult * r )"
.br
.ti -1c
-.BI "\fBQSqlQuery\fR ( const TQString & query = TQString::null, QSqlDatabase * db = 0 )"
+.BI "\fBQSqlQuery\fR ( const TQString & query = TQString::null, TQSqlDatabase * db = 0 )"
.br
.ti -1c
-.BI "explicit \fBQSqlQuery\fR ( QSqlDatabase * db )"
+.BI "explicit \fBQSqlQuery\fR ( TQSqlDatabase * db )"
.br
.ti -1c
-.BI "\fBQSqlQuery\fR ( const QSqlQuery & other )"
+.BI "\fBQSqlQuery\fR ( const TQSqlQuery & other )"
.br
.ti -1c
-.BI "QSqlQuery & \fBoperator=\fR ( const QSqlQuery & other )"
+.BI "TQSqlQuery & \fBoperator=\fR ( const TQSqlQuery & other )"
.br
.ti -1c
-.BI "virtual \fB~QSqlQuery\fR ()"
+.BI "virtual \fB~TQSqlQuery\fR ()"
.br
.ti -1c
.BI "bool \fBisValid\fR () const"
@@ -52,7 +52,7 @@ Inherited by QSqlCursor.
.BI "int \fBnumRowsAffected\fR () const"
.br
.ti -1c
-.BI "QSqlError \fBlastError\fR () const"
+.BI "TQSqlError \fBlastError\fR () const"
.br
.ti -1c
.BI "bool \fBisSelect\fR () const"
@@ -61,10 +61,10 @@ Inherited by QSqlCursor.
.BI "int \fBsize\fR () const"
.br
.ti -1c
-.BI "const QSqlDriver * \fBdriver\fR () const"
+.BI "const TQSqlDriver * \fBdriver\fR () const"
.br
.ti -1c
-.BI "const QSqlResult * \fBresult\fR () const"
+.BI "const TQSqlResult * \fBresult\fR () const"
.br
.ti -1c
.BI "bool \fBisForwardOnly\fR () const"
@@ -109,13 +109,13 @@ Inherited by QSqlCursor.
.BI "void \fBaddBindValue\fR ( const QVariant & val )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( const TQString & placeholder, const QVariant & val, QSql::ParameterType type )"
+.BI "void \fBbindValue\fR ( const TQString & placeholder, const QVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
-.BI "void \fBbindValue\fR ( int pos, const QVariant & val, QSql::ParameterType type )"
+.BI "void \fBbindValue\fR ( int pos, const QVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
-.BI "void \fBaddBindValue\fR ( const QVariant & val, QSql::ParameterType type )"
+.BI "void \fBaddBindValue\fR ( const QVariant & val, TQSql::ParameterType type )"
.br
.ti -1c
.BI "QVariant \fBboundValue\fR ( const TQString & placeholder ) const"
@@ -140,9 +140,9 @@ Inherited by QSqlCursor.
.br
.in -1c
.SH DESCRIPTION
-The QSqlQuery class provides a means of executing and manipulating SQL statements.
+The TQSqlQuery class provides a means of executing and manipulating SQL statements.
.PP
-QSqlQuery encapsulates the functionality involved in creating, navigating and retrieving data from SQL queries which are executed on a QSqlDatabase. It can be used to execute DML (data manipulation language) statements, e.g. \fCSELECT\fR, \fCINSERT\fR, \fCUPDATE\fR and \fCDELETE\fR, and also DDL (data definition language) statements, e.g. \fCCREATE TABLE\fR. It can also be used to execute database-specific commands which are not standard SQL (e.g. \fCSET DATESTYLE=ISO\fR for PostgreSQL).
+TQSqlQuery encapsulates the functionality involved in creating, navigating and retrieving data from SQL queries which are executed on a TQSqlDatabase. It can be used to execute DML (data manipulation language) statements, e.g. \fCSELECT\fR, \fCINSERT\fR, \fCUPDATE\fR and \fCDELETE\fR, and also DDL (data definition language) statements, e.g. \fCCREATE TABLE\fR. It can also be used to execute database-specific commands which are not standard SQL (e.g. \fCSET DATESTYLE=ISO\fR for PostgreSQL).
.PP
Successfully executed SQL statements set the query's state to active (isActive() returns TRUE); otherwise the query's state is set to inactive. In either case, when executing a new SQL statement, the query is positioned on an invalid record; an active query must be navigated to a valid record (so that isValid() returns TRUE) before values can be retrieved.
.PP
@@ -164,7 +164,7 @@ For example:
.PP
.nf
.br
- QSqlQuery query( "SELECT name FROM customer" );
+ TQSqlQuery query( "SELECT name FROM customer" );
.br
while ( query.next() ) {
.br
@@ -176,9 +176,9 @@ For example:
.br
.fi
.PP
-To access the data returned by a query, use the value() method. Each field in the data returned by a SELECT statement is accessed by passing the field's position in the statement, starting from 0. Information about the fields can be obtained via QSqlDatabase::record(). For the sake of efficiency there are no functions to access a field by name. (The QSqlCursor class provides a higher-level interface with field access by name and automatic SQL generation.)
+To access the data returned by a query, use the value() method. Each field in the data returned by a SELECT statement is accessed by passing the field's position in the statement, starting from 0. Information about the fields can be obtained via TQSqlDatabase::record(). For the sake of efficiency there are no functions to access a field by name. (The TQSqlCursor class provides a higher-level interface with field access by name and automatic SQL generation.)
.PP
-QSqlQuery supports prepared query execution and the binding of parameter values to placeholders. Some databases don't support these features, so for them TQt emulates the required functionality. For example, the Oracle and ODBC drivers have proper prepared query support, and TQt makes use of it; but for databases that don't have this support, TQt implements the feature itself, e.g. by replacing placeholders with actual values when a query is executed. The exception is positional binding using named placeholders, which requires that the database supports prepared queries.
+TQSqlQuery supports prepared query execution and the binding of parameter values to placeholders. Some databases don't support these features, so for them TQt emulates the required functionality. For example, the Oracle and ODBC drivers have proper prepared query support, and TQt makes use of it; but for databases that don't have this support, TQt implements the feature itself, e.g. by replacing placeholders with actual values when a query is executed. The exception is positional binding using named placeholders, which requires that the database supports prepared queries.
.PP
Oracle databases identify placeholders by using a colon-name syntax, e.g \fC:name\fR. ODBC simply uses \fC?\fR characters. TQt supports both syntaxes (although you can't mix them in the same query).
.PP
@@ -188,7 +188,7 @@ Below we present the same example using each of the four different binding appro
.PP
.nf
.br
- QSqlQuery query;
+ TQSqlQuery query;
.br
query.prepare( "INSERT INTO atable (id, forename, surname) "
.br
@@ -208,7 +208,7 @@ Below we present the same example using each of the four different binding appro
.PP
.nf
.br
- QSqlQuery query;
+ TQSqlQuery query;
.br
query.prepare( "INSERT INTO atable (id, forename, surname) "
.br
@@ -223,13 +223,13 @@ Below we present the same example using each of the four different binding appro
query.exec();
.br
.fi
-\fBNote:\fR Using positional binding with named placeholders will only work if the database supports prepared queries. This can be checked with QSqlDriver::hasFeature() using QSqlDriver::PreparedQueries as argument for driver feature.
+\fBNote:\fR Using positional binding with named placeholders will only work if the database supports prepared queries. This can be checked with TQSqlDriver::hasFeature() using TQSqlDriver::PreparedQueries as argument for driver feature.
.PP
\fBBinding values using positional placeholders #1\fR
.PP
.nf
.br
- QSqlQuery query;
+ TQSqlQuery query;
.br
query.prepare( "INSERT INTO atable (id, forename, surname) "
.br
@@ -267,13 +267,13 @@ Below we present the same example using each of the four different binding appro
.PP
.nf
.br
- QSqlQuery query;
+ TQSqlQuery query;
.br
query.prepare( "call AsciiToInt(?, ?)" );
.br
query.bindValue( 0, "A" );
.br
- query.bindValue( 1, 0, QSql::Out );
+ query.bindValue( 1, 0, TQSql::Out );
.br
query.exec();
.br
@@ -281,72 +281,72 @@ Below we present the same example using each of the four different binding appro
.br
.fi
.PP
-See also QSqlDatabase, QSqlCursor, QVariant, and Database Classes.
+See also TQSqlDatabase, TQSqlCursor, QVariant, and Database Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QSqlQuery::QSqlQuery ( QSqlResult * r )"
-Creates a QSqlQuery object which uses the QSqlResult \fIr\fR to communicate with a database.
-.SH "QSqlQuery::QSqlQuery ( const TQString & query = TQString::null, QSqlDatabase * db = 0 )"
-Creates a QSqlQuery object using the SQL \fIquery\fR and the database \fIdb\fR. If \fIdb\fR is 0, (the default), the application's default database is used. If \fIquery\fR is not a null string, it will be executed.
+.SH "TQSqlQuery::TQSqlQuery ( TQSqlResult * r )"
+Creates a TQSqlQuery object which uses the TQSqlResult \fIr\fR to communicate with a database.
+.SH "TQSqlQuery::TQSqlQuery ( const TQString & query = TQString::null, TQSqlDatabase * db = 0 )"
+Creates a TQSqlQuery object using the SQL \fIquery\fR and the database \fIdb\fR. If \fIdb\fR is 0, (the default), the application's default database is used. If \fIquery\fR is not a null string, it will be executed.
.PP
-See also QSqlDatabase.
-.SH "explicit QSqlQuery::QSqlQuery ( QSqlDatabase * db )"
-Creates a QSqlQuery object using the database \fIdb\fR. If \fIdb\fR is 0, the application's default database is used.
+See also TQSqlDatabase.
+.SH "explicit TQSqlQuery::TQSqlQuery ( TQSqlDatabase * db )"
+Creates a TQSqlQuery object using the database \fIdb\fR. If \fIdb\fR is 0, the application's default database is used.
.PP
-See also QSqlDatabase.
-.SH "QSqlQuery::QSqlQuery ( const QSqlQuery & other )"
+See also TQSqlDatabase.
+.SH "TQSqlQuery::TQSqlQuery ( const TQSqlQuery & other )"
Constructs a copy of \fIother\fR.
-.SH "QSqlQuery::~QSqlQuery ()\fC [virtual]\fR"
+.SH "TQSqlQuery::~TQSqlQuery ()\fC [virtual]\fR"
Destroys the object and frees any allocated resources.
-.SH "void QSqlQuery::addBindValue ( const QVariant & val, QSql::ParameterType type )"
-Adds the value \fIval\fR to the list of values when using positional value binding. The order of the addBindValue() calls determines which placeholder a value will be bound to in the prepared query. If \fItype\fR is QSql::Out or QSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
+.SH "void TQSqlQuery::addBindValue ( const QVariant & val, TQSql::ParameterType type )"
+Adds the value \fIval\fR to the list of values when using positional value binding. The order of the addBindValue() calls determines which placeholder a value will be bound to in the prepared query. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also bindValue(), prepare(), and exec().
-.SH "void QSqlQuery::addBindValue ( const QVariant & val )"
+.SH "void TQSqlQuery::addBindValue ( const QVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Binds the placeholder with type QSql::In.
-.SH "void QSqlQuery::afterSeek ()\fC [virtual protected]\fR"
+Binds the placeholder with type TQSql::In.
+.SH "void TQSqlQuery::afterSeek ()\fC [virtual protected]\fR"
Protected virtual function called after the internal record pointer is moved to a new record. The default implementation does nothing.
-.SH "int QSqlQuery::at () const"
-Returns the current internal position of the query. The first record is at position zero. If the position is invalid, a QSql::Location will be returned indicating the invalid position.
+.SH "int TQSqlQuery::at () const"
+Returns the current internal position of the query. The first record is at position zero. If the position is invalid, a TQSql::Location will be returned indicating the invalid position.
.PP
See also prev(), next(), first(), last(), seek(), isActive(), and isValid().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "void QSqlQuery::beforeSeek ()\fC [virtual protected]\fR"
+.SH "void TQSqlQuery::beforeSeek ()\fC [virtual protected]\fR"
Protected virtual function called before the internal record pointer is moved to a new record. The default implementation does nothing.
-.SH "void QSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val, QSql::ParameterType type )"
-Set the placeholder \fIplaceholder\fR to be bound to value \fIval\fR in the prepared statement. Note that the placeholder mark (e.g \fC:\fR) must be included when specifying the placeholder name. If \fItype\fR is QSql::Out or QSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
+.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val, TQSql::ParameterType type )"
+Set the placeholder \fIplaceholder\fR to be bound to value \fIval\fR in the prepared statement. Note that the placeholder mark (e.g \fC:\fR) must be included when specifying the placeholder name. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also addBindValue(), prepare(), and exec().
-.SH "void QSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val )"
+.SH "void TQSqlQuery::bindValue ( const TQString & placeholder, const QVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Binds the placeholder with type QSql::In.
-.SH "void QSqlQuery::bindValue ( int pos, const QVariant & val )"
+Binds the placeholder with type TQSql::In.
+.SH "void TQSqlQuery::bindValue ( int pos, const QVariant & val )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Binds the placeholder at position \fIpos\fR with type QSql::In.
-.SH "void QSqlQuery::bindValue ( int pos, const QVariant & val, QSql::ParameterType type )"
+Binds the placeholder at position \fIpos\fR with type TQSql::In.
+.SH "void TQSqlQuery::bindValue ( int pos, const QVariant & val, TQSql::ParameterType type )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Set the placeholder in position \fIpos\fR to be bound to value \fIval\fR in the prepared statement. Field numbering starts at 0. If \fItype\fR is QSql::Out or QSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
+Set the placeholder in position \fIpos\fR to be bound to value \fIval\fR in the prepared statement. Field numbering starts at 0. If \fItype\fR is TQSql::Out or TQSql::InOut, the placeholder will be overwritten with data from the database after the exec() call.
.PP
See also addBindValue(), prepare(), and exec().
-.SH "QVariant QSqlQuery::boundValue ( const TQString & placeholder ) const"
+.SH "QVariant TQSqlQuery::boundValue ( const TQString & placeholder ) const"
Returns the value for the \fIplaceholder\fR.
-.SH "QVariant QSqlQuery::boundValue ( int pos ) const"
+.SH "QVariant TQSqlQuery::boundValue ( int pos ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the value for the placeholder at position \fIpos\fR.
-.SH "QMap<TQString, QVariant> QSqlQuery::boundValues () const"
+.SH "QMap<TQString, QVariant> TQSqlQuery::boundValues () const"
Returns a map of the bound values.
.PP
The bound values can be examined in the following way:
.PP
.nf
.br
- QSqlQuery query;
+ TQSqlQuery query;
.br
...
.br
@@ -379,9 +379,9 @@ The bound values can be examined in the following way:
.br
.br
.fi
-.SH "const QSqlDriver * QSqlQuery::driver () const"
+.SH "const TQSqlDriver * TQSqlQuery::driver () const"
Returns the database driver associated with the query.
-.SH "bool QSqlQuery::exec ( const TQString & query )\fC [virtual]\fR"
+.SH "bool TQSqlQuery::exec ( const TQString & query )\fC [virtual]\fR"
Executes the SQL in \fIquery\fR. Returns TRUE and sets the query state to active if the query was successful; otherwise returns FALSE and sets the query state to inactive. The \fIquery\fR string must use syntax appropriate for the SQL database being queried, for example, standard SQL.
.PP
After the query is executed, the query is positioned on an \fIinvalid\fR record, and must be navigated to a valid record before data values can be retrieved, e.g. using next().
@@ -392,56 +392,56 @@ See also isActive(), isValid(), next(), prev(), first(), last(), and seek().
.PP
Examples:
.)l sql/overview/basicbrowsing/main.cpp, sql/overview/basicbrowsing2/main.cpp, sql/overview/basicdatamanip/main.cpp, and sql/overview/connection.cpp.
-.SH "bool QSqlQuery::exec ()"
+.SH "bool TQSqlQuery::exec ()"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Executes a previously prepared SQL query. Returns TRUE if the query executed successfully; otherwise returns FALSE.
.PP
See also prepare(), bindValue(), and addBindValue().
-.SH "TQString QSqlQuery::executedQuery () const"
+.SH "TQString TQSqlQuery::executedQuery () const"
Returns the last query that was executed.
.PP
In most cases this function returns the same as lastQuery(). If a prepared query with placeholders is executed on a DBMS that does not support it, the preparation of this query is emulated. The placeholders in the original query are replaced with their bound values to form a new query. This function returns the modified query. Useful for debugging purposes.
.PP
See also lastQuery().
-.SH "bool QSqlQuery::first ()\fC [virtual]\fR"
+.SH "bool TQSqlQuery::first ()\fC [virtual]\fR"
Retrieves the first record in the result, if available, and positions the query on the retrieved record. Note that the result must be in an active state and isSelect() must return TRUE before calling this function or it will do nothing and return FALSE. Returns TRUE if successful. If unsuccessful the query position is set to an invalid position and FALSE is returned.
.PP
See also next(), prev(), last(), seek(), at(), isActive(), and isValid().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "bool QSqlQuery::isActive () const"
+.SH "bool TQSqlQuery::isActive () const"
Returns TRUE if the query is currently active; otherwise returns FALSE.
.PP
Examples:
.)l sql/overview/basicbrowsing/main.cpp, sql/overview/basicbrowsing2/main.cpp, sql/overview/basicdatamanip/main.cpp, sql/overview/navigating/main.cpp, and sql/overview/retrieve1/main.cpp.
-.SH "bool QSqlQuery::isForwardOnly () const"
+.SH "bool TQSqlQuery::isForwardOnly () const"
Returns TRUE if you can only scroll \fIforward\fR through a result set; otherwise returns FALSE.
.PP
See also setForwardOnly().
-.SH "bool QSqlQuery::isNull ( int field ) const"
+.SH "bool TQSqlQuery::isNull ( int field ) const"
Returns TRUE if the query is active and positioned on a valid record and the \fIfield\fR is NULL; otherwise returns FALSE. Note that for some drivers isNull() will not return accurate information until after an attempt is made to retrieve data.
.PP
See also isActive(), isValid(), and value().
-.SH "bool QSqlQuery::isSelect () const"
+.SH "bool TQSqlQuery::isSelect () const"
Returns TRUE if the current query is a \fCSELECT\fR statement; otherwise returns FALSE.
-.SH "bool QSqlQuery::isValid () const"
+.SH "bool TQSqlQuery::isValid () const"
Returns TRUE if the query is currently positioned on a valid record; otherwise returns FALSE.
-.SH "bool QSqlQuery::last ()\fC [virtual]\fR"
+.SH "bool TQSqlQuery::last ()\fC [virtual]\fR"
Retrieves the last record in the result, if available, and positions the query on the retrieved record. Note that the result must be in an active state and isSelect() must return TRUE before calling this function or it will do nothing and return FALSE. Returns TRUE if successful. If unsuccessful the query position is set to an invalid position and FALSE is returned.
.PP
See also next(), prev(), first(), seek(), at(), isActive(), and isValid().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "QSqlError QSqlQuery::lastError () const"
+.SH "TQSqlError TQSqlQuery::lastError () const"
Returns error information about the last error (if any) that occurred.
.PP
-See also QSqlError.
-.SH "TQString QSqlQuery::lastQuery () const"
+See also TQSqlError.
+.SH "TQString TQSqlQuery::lastQuery () const"
Returns the text of the current query being used, or TQString::null if there is no current query text.
.PP
See also executedQuery().
-.SH "bool QSqlQuery::next ()\fC [virtual]\fR"
+.SH "bool TQSqlQuery::next ()\fC [virtual]\fR"
Retrieves the next record in the result, if available, and positions the query on the retrieved record. Note that the result must be in an active state and isSelect() must return TRUE before calling this function or it will do nothing and return FALSE.
.PP
The following rules apply:
@@ -460,20 +460,20 @@ See also prev(), first(), last(), seek(), at(), isActive(), and isValid().
.PP
Examples:
.)l sql/overview/basicbrowsing/main.cpp, sql/overview/basicbrowsing2/main.cpp, sql/overview/delete/main.cpp, sql/overview/order1/main.cpp, sql/overview/retrieve1/main.cpp, sql/overview/subclass4/main.cpp, and sql/overview/subclass5/main.cpp.
-.SH "int QSqlQuery::numRowsAffected () const"
+.SH "int TQSqlQuery::numRowsAffected () const"
Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined. Note that for \fCSELECT\fR statements, the value is undefined; see size() instead. If the query is not active (isActive() returns FALSE), -1 is returned.
.PP
-See also size() and QSqlDriver::hasFeature().
+See also size() and TQSqlDriver::hasFeature().
.PP
Examples:
.)l sql/overview/basicbrowsing2/main.cpp and sql/overview/basicdatamanip/main.cpp.
-.SH "QSqlQuery & QSqlQuery::operator= ( const QSqlQuery & other )"
+.SH "TQSqlQuery & TQSqlQuery::operator= ( const TQSqlQuery & other )"
Assigns \fIother\fR to the query.
-.SH "bool QSqlQuery::prepare ( const TQString & query )"
+.SH "bool TQSqlQuery::prepare ( const TQString & query )"
Prepares the SQL query \fIquery\fR for execution. The query may contain placeholders for binding values. Both Oracle style colon-name (e.g. \fC:surname\fR), and ODBC style (e.g. \fC?\fR) placeholders are supported; but they cannot be mixed in the same query. See the Description for examples.
.PP
See also exec(), bindValue(), and addBindValue().
-.SH "bool QSqlQuery::prev ()\fC [virtual]\fR"
+.SH "bool TQSqlQuery::prev ()\fC [virtual]\fR"
Retrieves the previous record in the result, if available, and positions the query on the retrieved record. Note that the result must be in an active state and isSelect() must return TRUE before calling this function or it will do nothing and return FALSE.
.PP
The following rules apply:
@@ -489,9 +489,9 @@ If the result is somewhere in the middle, an attempt is made to retrieve the pre
If the record could not be retrieved, the result is positioned before the first record and FALSE is returned. If the record is successfully retrieved, TRUE is returned.
.PP
See also next(), first(), last(), seek(), at(), isActive(), and isValid().
-.SH "const QSqlResult * QSqlQuery::result () const"
+.SH "const TQSqlResult * TQSqlQuery::result () const"
Returns the result associated with the query.
-.SH "bool QSqlQuery::seek ( int i, bool relative = FALSE )\fC [virtual]\fR"
+.SH "bool TQSqlQuery::seek ( int i, bool relative = FALSE )\fC [virtual]\fR"
Retrieves the record at position (offset) \fIi\fR, if available, and positions the query on the retrieved record. The first record is at position 0. Note that the query must be in an active state and isSelect() must return TRUE before calling this function.
.PP
If \fIrelative\fR is FALSE (the default), the following rules apply:
@@ -513,23 +513,23 @@ Otherwise, an attempt is made to move to the record \fIi\fR records ahead of the
See also next(), prev(), first(), last(), at(), isActive(), and isValid().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "void QSqlQuery::setForwardOnly ( bool forward )"
+.SH "void TQSqlQuery::setForwardOnly ( bool forward )"
Sets forward only mode to \fIforward\fR. If forward is TRUE only next(), and seek() with positive values, are allowed for navigating the results. Forward only mode needs far less memory since results do not need to be cached.
.PP
Forward only mode is off by default.
.PP
-Forward only mode cannot be used with data aware widgets like QDataTable, since they must to be able to scroll backward as well as forward.
+Forward only mode cannot be used with data aware widgets like TQDataTable, since they must to be able to scroll backward as well as forward.
.PP
See also isForwardOnly(), next(), and seek().
-.SH "int QSqlQuery::size () const"
+.SH "int TQSqlQuery::size () const"
Returns the size of the result, (number of rows returned), or -1 if the size cannot be determined or if the database does not support reporting information about query sizes. Note that for non-\fCSELECT\fR statements (isSelect() returns FALSE), size() will return -1. If the query is not active (isActive() returns FALSE), -1 is returned.
.PP
To determine the number of rows affected by a non-SELECT statement, use numRowsAffected().
.PP
-See also isActive(), numRowsAffected(), and QSqlDriver::hasFeature().
+See also isActive(), numRowsAffected(), and TQSqlDriver::hasFeature().
.PP
Example: sql/overview/navigating/main.cpp.
-.SH "QVariant QSqlQuery::value ( int i ) const\fC [virtual]\fR"
+.SH "QVariant TQSqlQuery::value ( int i ) const\fC [virtual]\fR"
Returns the value of the \fIi\fR-th field in the query (zero based).
.PP
The fields are numbered from left to right using the text of the \fCSELECT\fR statement, e.g. in \fCSELECT forename, surname FROM people\fR, field 0 is \fCforename\fR and field 1 is \fCsurname\fR. Using \fCSELECT *\fR is not recommended because the order of the fields in the query is undefined.
@@ -542,7 +542,7 @@ Examples:
.)l sql/overview/basicbrowsing/main.cpp, sql/overview/basicbrowsing2/main.cpp, sql/overview/retrieve1/main.cpp, sql/overview/subclass3/main.cpp, sql/overview/subclass4/main.cpp, sql/overview/subclass5/main.cpp, and sql/overview/table4/main.cpp.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqsqlquery.html
+.BR http://doc.trolltech.com/tqsqlquery.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the