From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/sql-overview-basicbrowsing2-main-cpp.html | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/sql-overview-basicbrowsing2-main-cpp.html') diff --git a/doc/html/sql-overview-basicbrowsing2-main-cpp.html b/doc/html/sql-overview-basicbrowsing2-main-cpp.html index 44b840099..62d8d5d2c 100644 --- a/doc/html/sql-overview-basicbrowsing2-main-cpp.html +++ b/doc/html/sql-overview-basicbrowsing2-main-cpp.html @@ -42,29 +42,29 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <qapplication.h> -#include <qsqldatabase.h> -#include <qsqlquery.h> +#include <ntqapplication.h> +#include <ntqsqldatabase.h> +#include <ntqsqlquery.h> #include "../connection.h" int main( int argc, char *argv[] ) { - TQApplication app( argc, argv, FALSE ); + TQApplication app( argc, argv, FALSE ); if ( createConnections() ) { - TQSqlDatabase *oracledb = TQSqlDatabase::database( "ORACLE" ); + TQSqlDatabase *oracledb = TQSqlDatabase::database( "ORACLE" ); // Copy data from the oracle database to the ODBC (default) // database - TQSqlQuery target; - TQSqlQuery query( "SELECT id, name FROM people", oracledb ); + TQSqlQuery target; + TQSqlQuery query( "SELECT id, name FROM people", oracledb ); int count = 0; - if ( query.isActive() ) { - while ( query.next() ) { - target.exec( "INSERT INTO people ( id, name ) VALUES ( " + - query.value(0).toString() + - ", '" + query.value(1).toString() + "' )" ); - if ( target.isActive() ) - count += target.numRowsAffected(); + if ( query.isActive() ) { + while ( query.next() ) { + target.exec( "INSERT INTO people ( id, name ) VALUES ( " + + query.value(0).toString() + + ", '" + query.value(1).toString() + "' )" ); + if ( target.isActive() ) + count += target.numRowsAffected(); } } } -- cgit v1.2.1