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 » Developing U++ » UppHub » found a solution in the interim - firebird
Re: found a solution in the interim - firebird [message #49295 is a reply to message #49270] Wed, 17 January 2018 07:15 Go to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

Hi Novo-

Please see test code below:

I tested this really quick except that I had to learn to check out a single file on git.
Your code is working awesome.
The code below prints out a list of countries from the employee.fdb sample db.

thx. so much!
01-17-2018 1:15 GMT -5

Have a cool week,
mtdew3q


FBSession s;
	s.Connect(
	"/usr/local/firebird/examples/empbuild/employee.fdb",
	"localhost",
	"SYSDBA",
	"masterkey"
	);
	
    Sql stmt(s);
    	stmt.SetStatement(
		" SELECT * from country"
	);
	stmt.Run();	
	
	while (stmt.Fetch())
	{
      Cout()<<stmt[0]<<"\n";
	}

[Updated on: Wed, 17 January 2018 07:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Firebird connection problem
Next Topic: Am I doing something wrong, or is there a bug? FIREBIRD
Goto Forum:
  


Current Time: Sun May 05 18:30:54 CEST 2024

Total time taken to generate the page: 0.02499 seconds