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++ » Bazaar » found a solution in the interim - firebird
found a solution in the interim - firebird [message #49270] Sun, 14 January 2018 20:25 Go to next message
mtdew3q is currently offline  mtdew3q
Messages: 94
Registered: July 2010
Location: Upstate, NY
Member
Hi Novo and group-

I know C++ with Ultimate uses the language aggressively.
I like it though sometimes because the documentation is in the code.
However, Novo is very busy. I am not sure I am using his firebird correctly.

So, for the time being, I will use the new Soci 4.0 master branch.
I fired it up today, and it took very little time to install.
They had a ton of documentation and even a tip or two on google
to help me get the rest of the way.

I will check back periodically to see if anyone writes, but based on
how busy everyone is I am not sure if I can use firebird in bazaar.

It is not a show stopper for me. I can always use TK as a front end.
I just tinker with this stuff, and I think for the serious C++ person,
they will figure out Novo's firebird. I am probably doing it wrong.

Sorry, and thanks for being patient.

Thx. and have a cool rest of Jan.!-
mtdew3q
Re: found a solution in the interim - firebird [message #49291 is a reply to message #49270] Tue, 16 January 2018 21:12 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 761
Registered: December 2006
Contributor
Hi mtdew3q,

Sorry for the delayed response. I've committed a change which is supposed to help you to connect to firebird on Linux. I've fixed a name of a default client dll and removed references to functions which are not available in firebird 3.0.
Unfortunately, I'm unable to connect to firebird server myself because I'm getting an error below all the time.
Can not access lock files directory /tmp/firebird/

I believe this is related to an incorrect configuration of my server.
I'm testing this by running a command below.
./FirebirdTest /usr/lib/x86_64-linux-gnu/libfbclient.so /home/user/data/db/firebird/test.02.fdb


Regards,
Novo
Re: found a solution in the interim - firebird [message #49294 is a reply to message #49291] Wed, 17 January 2018 05:50 Go to previous messageGo to next message
mtdew3q is currently offline  mtdew3q
Messages: 94
Registered: July 2010
Location: Upstate, NY
Member
Hi Novo-

I just saw your post 01-16-18 at 11:50 GMT.
I will definitely check it out hopefully in a night or two and/or the weekend at the latest.
Very cool!

thx. very much,
mtdew3q
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: 94
Registered: July 2010
Location: Upstate, NY
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

Previous Topic: Firebird connection problem
Next Topic: Building TheIDE with using CMake
Goto Forum:
  


Current Time: Mon Apr 22 01:07:08 CEST 2019

Total time taken to generate the page: 0.16064 seconds