On Wed, May 12, 2021 at 11:30 AM Vadim Zeitlin <vz-s...@zeitlins.org> wrote:
> 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=localhost: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_______________________________________________ > soci-users mailing list > soci-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/soci-users Hi Vadim- VZ> What do you mean by this? Does it output an error (which one)? Crash? JM>It does not output an error. The code sample listed above doesn't execute cout << "2" . I don't use gdb for debugging. My mouse cursor briefly turns into the blue spinning wheel, and then the rest of my code after the sql session statement doesn't finish executing. JM>I am switching to postgresql. I will install Postgresql the weekend of 05/14/2021. I know postgresql will work because there is commercial support for that from Inspirel. JM> I will keep checking back without posting anymore about it to see if anyone else is having luck using firebird 3.0 with windows 10 in the future. JM>Thanks for the cool help! JM
_______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users