Home » U++ Library support » U++ SQL » Can I use Upp::Oracle8 connect to Oracle10?
Re: Can I use Upp::Oracle8 connect to Oracle10? [message #9168 is a reply to message #6083] |
Thu, 19 April 2007 21:44 |
Sbleck
Messages: 16 Registered: April 2007 Location: Brazil
|
Promising Member |
|
|
Hi,
I tried to see this code running to learn more about U++ and the connection to Oracle databases, but the only result I obtained were errors (a lot of them, unfortunately...). I tried to compile with MingW (and MSC) the code below:
#include <Core/Core.h>
#include <Oracle/Oracle8.h>
#include <iostream>
CONSOLE_APP_MAIN
{
Oracle8 oracle;
Cout() << "Connecting...\n";
Cout() << "Connect state: " << oracle.Open("scott/tiger@prev") << "\n";
Sql sql(oracle);
String cmd = "select * from emp" ;
Cout() << "Executing " << cmd << "...\n";
sql.Execute ( cmd ) ;
Cout() << "Execute done...\n";
// Everything right here..
while( sql.Fetch() ) // this line wrong.. in the function Fetch(), a ASSERTION error...
Cout() << String(sql[0]) << ": " << String(sql[1]) << "\n ";
}
The code above I named it "SQL_Oracle2", because I checked the sintax and compared the code with another example, named "SQL_Oracle". Probably I'm doing something wrong, but I could't find why I had problems with a little piece of code. Please take a look in the attached file, also. If anybody could help, any advice should VERY appreciated...
Tks in adv,
Sven
|
|
|
|
|
Can I use Upp::Oracle8 connect to Oracle10?
By: yoco on Mon, 30 October 2006 06:41
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: mirek on Mon, 30 October 2006 07:14
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: yoco on Mon, 30 October 2006 07:30
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: Sbleck on Thu, 19 April 2007 21:44
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: mirek on Thu, 19 April 2007 23:05
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: Sbleck on Fri, 20 April 2007 01:15
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: mirek on Fri, 20 April 2007 08:57
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: Sbleck on Mon, 23 April 2007 21:07
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: mirek on Tue, 24 April 2007 13:58
|
|
|
Re: Can I use Upp::Oracle8 connect to Oracle10?
By: tojocky on Fri, 25 September 2009 11:39
|
Goto Forum:
Current Time: Sat May 04 17:10:30 CEST 2024
Total time taken to generate the page: 0.04857 seconds
|