Thank you! On 06/29/2012 06:30 PM, Gavin Shelley wrote: > On 29 Jun 2012, at 14:58, Michael Evdokimov wrote: > >> Hello! >> >> What is the best way to set some mysql options? >> I am interested in these: >> MYSQL_OPT_RECONNECT >> MYSQL_OPT_CONNECT_TIMEOUT > http://soci.sourceforge.net/doc/backends/mysql.html#native > > Something like this once worked. It may still do. > > my_bool reconnect = 1; > soci::mysql_session_backend* be = > static_cast<soci::mysql_session_backend *>(m_sql->get_backend() ); > mysql_options(be->conn_, MYSQL_OPT_RECONNECT, &reconnect); > >
-- Best regards, Michael Evdokimov Network Solutions, Moscow, Russia, Office: +7-495-7950677, Mobile: +7-963-6054013 Web: www.lanbilling.ru, www.lanbilling.tv, www.helpdesk2.ru ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
