Hi all,
I have two questions, thanks in advance for any suggestion
The first one is does soci support to connect to a remote database (mysql) ? If
yes then how can I do ?
The second one is: given my below code, when the select query returns no
result, the exception did not throw any thing and the program continues as
normal. How can I catch such exception ?
try { rootSession << "select rights from myTable where
user_id =:id ", into(rights, ind),
use(user_id); } catch (mysql_soci_error const &e) {
assert(e.err_num_ == CR_NO_RESULT_SET); cerr << "MySQL error: " <<
e.err_num_ << " " << e.what() << endl; } catch (exception
const & e)
{ cerr << "Some other error: " << e.what() << endl;
}
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users