Hello, Gabriel Cartuccia wrote:
> I want to reconnect to database in case of error, but I don't know how. > > In this link: > http://soci.sourceforge.net/doc/reference.html > > says that the class Session has a method called 'reconnect', but I get a > compile error saying that such member doesn't exist. Are you sure that you are using version 3.0 of the SOCI library? This function has been added with the 3.0 release and did not exist in earlier versions, which are still being distributed by other channels. You have used the word "Session" with uppercase 'S', which also suggests that you are using version 2.x of SOCI. All names in the 3.x version use the standard (and Boost) naming convention, which is all lowercase. If this is indeed the case, please consider upgrading to more recent library version. The most up-to-date version can be obtained directly from the Git repository, as described on the SOCI webpage. Regards, -- Maciej Sobczak * www.msobczak.com * www.inspirel.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
