MySQL Forums
Forum List  »  Connector/C++

Initialize pointer to connection
Posted by: Adam Olson
Date: December 17, 2013 11:05AM

I create a pointer to a connection like in the examples:

sql::Connection *con;

Now, I would like to initialize this connection, but not with sql::driver::connect(), because I may not be able to create a connection immediately before my program tries to use the pointer.

I see some use mysql_init(null), but I am using statically linked libraries and cannot see this available. Do I have any options?

Options: ReplyQuote


Subject
Views
Written By
Posted
Initialize pointer to connection
2467
December 17, 2013 11:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.