diff options
Diffstat (limited to 'doc/html/sql.html')
-rw-r--r-- | doc/html/sql.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/sql.html b/doc/html/sql.html index fca61765d..1eb657590 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -314,7 +314,7 @@ function in <tt>connection.h</tt>. <a name="x2152"></a> defaultDB-><a href="ntqsqldatabase.html#setPassword">setPassword</a>( DB_SALES_PASSWD ); <a name="x2151"></a> defaultDB-><a href="ntqsqldatabase.html#setHostName">setHostName</a>( DB_SALES_HOST ); <a name="x2149"></a> if ( ! defaultDB-><a href="ntqsqldatabase.html#open">open</a>() ) { - <a name="x2148"></a> <a href="ntqapplication.html#qWarning">qWarning</a>( "Failed to open sales database: " + defaultDB-><a href="ntqsqldatabase.html#lastError">lastError</a>().text() ); + <a name="x2148"></a> <a href="ntqapplication.html#qWarning">tqWarning</a>( "Failed to open sales database: " + defaultDB-><a href="ntqsqldatabase.html#lastError">lastError</a>().text() ); return FALSE; } @@ -324,7 +324,7 @@ function in <tt>connection.h</tt>. oracle-><a href="ntqsqldatabase.html#setPassword">setPassword</a>( DB_ORDERS_PASSWD ); oracle-><a href="ntqsqldatabase.html#setHostName">setHostName</a>( DB_ORDERS_HOST ); if ( ! oracle-><a href="ntqsqldatabase.html#open">open</a>() ) { - <a href="ntqapplication.html#qWarning">qWarning</a>( "Failed to open orders database: " + oracle-><a href="ntqsqldatabase.html#lastError">lastError</a>().text() ); + <a href="ntqapplication.html#qWarning">tqWarning</a>( "Failed to open orders database: " + oracle-><a href="ntqsqldatabase.html#lastError">lastError</a>().text() ); return FALSE; } @@ -570,7 +570,7 @@ retrieve data from it. <a href="ntqsqlquery.html">TQSqlQuery</a> query( "SELECT id, surname FROM staff" ); <a name="x2175"></a> if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) { <a name="x2176"></a> while ( query.<a href="ntqsqlquery.html#next">next</a>() ) { - <a href="ntqapplication.html#qDebug">qDebug</a>( query.<a href="ntqsqlquery.html#value">value</a>(0).toString() + ": " + + <a href="ntqapplication.html#qDebug">tqDebug</a>( query.<a href="ntqsqlquery.html#value">value</a>(0).toString() + ": " + <a name="x2177"></a> query.<a href="ntqsqlquery.html#value">value</a>(1).toString() ); } } @@ -641,7 +641,7 @@ discuss <a href="#Subclassing_QSqlCursor">subclassing TQSqlCursor</a>. <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "staff" ); // Specify the table/view name <a name="x2178"></a> cur.<a href="ntqsqlcursor.html#select">select</a>(); // We'll retrieve every record while ( cur.<a href="ntqsqlquery.html#next">next</a>() ) { - <a name="x2179"></a> <a href="ntqapplication.html#qDebug">qDebug</a>( cur.<a href="ntqsqlquery.html#value">value</a>( "id" ).toString() + ": " + + <a name="x2179"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( cur.<a href="ntqsqlquery.html#value">value</a>( "id" ).toString() + ": " + cur.<a href="ntqsqlquery.html#value">value</a>( "surname" ).toString() + " " + cur.<a href="ntqsqlquery.html#value">value</a>( "salary" ).toString() ); } @@ -780,7 +780,7 @@ setValue() to ensure that the value used is the one we want. <a name="x2191"></a> int id = cur.<a href="ntqsqlquery.html#value">value</a>( "id" ).toInt(); <a href="ntqstring.html">TQString</a> name = cur.<a href="ntqsqlquery.html#value">value</a>( "forename" ).toString() + " " + cur.<a href="ntqsqlquery.html#value">value</a>( "surname" ).toString(); - <a name="x2193"></a> <a href="ntqapplication.html#qDebug">qDebug</a>( TQString::<a href="ntqstring.html#number">number</a>( id ) + ": " + name ); + <a name="x2193"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( TQString::<a href="ntqstring.html#number">number</a>( id ) + ": " + name ); } </pre><blockquote><p align="center"><em> From <a href="sql-overview-extract-main-cpp.html">sql/overview/extract/main.cpp</a> </em></p> @@ -804,7 +804,7 @@ values ourselves with the setValue() calls. The order fields are used in the <tt>ORDER BY</tt> clause. <p> Now we iterate through each matching record (if any). We retrieve the contents of the id, forename and surname fields and pass them on to -some processing function, in this example a simple <a href="ntqapplication.html#qDebug">qDebug</a>() call. +some processing function, in this example a simple <a href="ntqapplication.html#qDebug">tqDebug</a>() call. <p> <a name="Manipulating_Records"></a> <h3> Manipulating Records </h3> |