diff options
author | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/sql-overview-basicdatamanip-main-cpp.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/sql-overview-basicdatamanip-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-basicdatamanip-main-cpp.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/sql-overview-basicdatamanip-main-cpp.html b/doc/html/sql-overview-basicdatamanip-main-cpp.html index 33332fb06..48cb4574a 100644 --- a/doc/html/sql-overview-basicdatamanip-main-cpp.html +++ b/doc/html/sql-overview-basicdatamanip-main-cpp.html @@ -42,9 +42,9 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qsqldatabase-h.html">qsqldatabase.h</a>> -#include <<a href="qsqlquery-h.html">qsqlquery.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>> +#include <<a href="qsqlquery-h.html">ntqsqlquery.h</a>> #include "../connection.h" bool createConnections(); @@ -52,20 +52,20 @@ bool createConnections(); int main( int argc, char *argv[] ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv, FALSE ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE ); int rows = 0; if ( createConnections() ) { - <a href="qsqlquery.html">TQSqlQuery</a> query( "INSERT INTO staff ( id, forename, surname, salary ) " + <a href="ntqsqlquery.html">TQSqlQuery</a> query( "INSERT INTO staff ( id, forename, surname, salary ) " "VALUES ( 1155, 'Ginger', 'Davis', 50000 )" ); - if ( query.<a href="qsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="qsqlquery.html#numRowsAffected">numRowsAffected</a>() ; + if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ; - query.<a href="qsqlquery.html#exec">exec</a>( "UPDATE staff SET salary=60000 WHERE id=1155" ); - if ( query.<a href="qsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="qsqlquery.html#numRowsAffected">numRowsAffected</a>() ; + query.<a href="ntqsqlquery.html#exec">exec</a>( "UPDATE staff SET salary=60000 WHERE id=1155" ); + if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ; - query.<a href="qsqlquery.html#exec">exec</a>( "DELETE FROM staff WHERE id=1155" ); - if ( query.<a href="qsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="qsqlquery.html#numRowsAffected">numRowsAffected</a>() ; + query.<a href="ntqsqlquery.html#exec">exec</a>( "DELETE FROM staff WHERE id=1155" ); + if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ; } return ( rows == 3 ) ? 0 : 1; |