On Tue, 11 May 2021 20:31:58 -0400 Jim McNamara <nefarioussch...@gmail.com> 
wrote:

JM> Here is my output. I tried to neaten up my include code and I put in very
JM> basic debugging. It never gets past the connect string with the
JM> service, username, and password.

 What do you mean by this? Does it output an error (which one)? Crash?

JM> int main()
JM> {
JM> 
JM> int count2=0;
JM>     try
JM>     {
JM> 
JM>     cout << "1";
JM>         soci::session
JM> 
sql(backEnd,"service=c:/MYAPPS/firebird/firebird_3_0/examples/empbuild/EMPLOYEE.fdb
JM> user=sysdba password=mypasswd");
JM>     cout << "2";
JM>         sql << "select count(*) from employee", into(count2);
JM>     }
JM>     catch (soci_error const &e)
JM>     {
JM>         cerr << "Error: " << e.what() << '\n';
JM>     }
JM> 
JM>     return 0;
JM> }

 The code looks fine to me, so unless there is some subtle typo I'm missing
here, it can only be some problem with the build, e.g. maybe you've used a
different (and incompatible) version of Firebird in SOCI or something like
that.

 Also, just to be clear, I'm only using SOCI with embedded Firebird, not
the client-server version as we use it as a more compatible with the other
databases alternative to SQLite for purely local deployments, rather than
as an alternative to PostgreSQL or SQL Server. If you are using Firebird
server, there are probably a bunch of other reasons it might not work, but
I don't know anything about them, sorry.

 Regards,
VZ

Attachment: pgp1KSmDUQicb.pgp
Description: PGP signature

_______________________________________________
soci-users mailing list
soci-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to