Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Can I use Upp::Oracle8 connect to Oracle10?
Can I use Upp::Oracle8 connect to Oracle10? [message #6083] Mon, 30 October 2006 06:41 Go to previous message
yoco is currently offline  yoco
Messages: 25
Registered: June 2006
Location: Taiwan
Promising Member
#include <Core/Core.h>
#include <Oracle/Oracle8.h>
#include <iostream>

CONSOLE_APP_MAIN
{
	Oracle8 oracle;
	Cout() << "Connecting...\n" ;
	Cout() << "Connect state: " << oracle.Open("xxx/yyy@zzz") << "\n" ;
	
	Sql sql(oracle);
	
	String cmd = "select * from tab;" ;
	Cout() << "Excuting " << cmd << "...\n" ;
	sql.Execute ( cmd ) ;
	Cout() << "Excute 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]);
	
}


So.. What can I do know ^^?
Thx a lot.
 
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message icon7.gif
Read Message
Read Message icon7.gif
Read Message
Read Message
Previous Topic: Postgres and CurrVal
Next Topic: Linux Oracle UPP
Goto Forum:
  


Current Time: Thu Apr 25 07:04:41 CEST 2024

Total time taken to generate the page: 2.91322 seconds