From 5fffa30386502b5423e45c2ed5e6af756b11c7b4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 28 May 2024 10:17:01 +0900 Subject: Rename nt* sql related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/sql-overview-basicbrowsing-main-cpp.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/sql-overview-basicbrowsing-main-cpp.html') diff --git a/doc/html/sql-overview-basicbrowsing-main-cpp.html b/doc/html/sql-overview-basicbrowsing-main-cpp.html index 7ec94e8c1..35b8e488f 100644 --- a/doc/html/sql-overview-basicbrowsing-main-cpp.html +++ b/doc/html/sql-overview-basicbrowsing-main-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } *****************************************************************************/ #include <ntqapplication.h> -#include <ntqsqldatabase.h> -#include <ntqsqlquery.h> +#include <tqsqldatabase.h> +#include <tqsqlquery.h> #include "../connection.h" int main( int argc, char *argv[] ) @@ -52,16 +52,16 @@ int main( int argc, char *argv[] ) 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 ); - if ( query.isActive() ) { - while ( query.next() ) { - target.exec( "INSERT INTO people ( id, name ) VALUES ( " + - query.value(0).toString() + - ", '" + query.value(1).toString() + "' )" ); + TQSqlQuery target; + TQSqlQuery query( "SELECT id, name FROM people", oracledb ); + if ( query.isActive() ) { + while ( query.next() ) { + target.exec( "INSERT INTO people ( id, name ) VALUES ( " + + query.value(0).toString() + + ", '" + query.value(1).toString() + "' )" ); } } } -- cgit v1.2.1