This fixes bugs since the first GA release 1.0.5 and introduces new features.
Functionality added or changed:
Incompatible Change: API incompatible change:
ConnectPropertyValis no longer astructby a typedef that usesboost::variant. Code such as:sql::ConnectPropertyVal tmp; tmp.str.val=passwd.c_str(); tmp.str.len=passwd.length(); connection_properties["password"] = tmp;
Should be changed to:
connection_properties["password"] = sql::ConnectPropertyVal(passwd);
Instances of
std::auto_ptrhave been changed toboost::scoped_ptr. Scoped array instances now use boost::scoped_array. Further,boost::shared_ptrandboost::weak_ptrare now used for guarding access around result sets.LDFLAGS,CXXFLAGSandCPPFLAGSare now checked from the environment for every binary generated.Connection map property
OPT_RECONNECTwas changed to be of typebooleanfromlonglong.get_driver_instance()is now only available in dynamic library builds - static builds do not have this symbol. This was done to accommodate loading the DLL withLoadLibraryordlopen. If you do not use CMake for building the source code you will need to definemysqlcppconn_EXPORTSif you are loading dynamically and want to use theget_driver_instance()entry point.Connection::getClientOption(const sql::SQLString & optionName, void * optionValue)now accepts theoptionNamevaluesmetadataUseInfoSchema,defaultStatementResultType,defaultPreparedStatementResultType, andcharacterSetResults. In the previous version onlymetadataUseInfoSchemawas permitted. The same options are avalable forConnection::setClientOption().
Bugs fixed:
Certain header files were incorrectly present in the source distribution. The fix excludes dynamically generated and platform specific header files from source packages generated using CPack. (Bug#45846)
CMake generated an error if configuring an out of source build, that is, when CMake was not called from the source root directory. (Bug#45843)
Using Prepared Statements caused corruption of the heap. (Bug#45048)
Missing includes when using GCC 4.4. Note that GCC 4.4 is not yet in use for any official MySQL Connector/C++ builds. (Bug#44931)
A bug was fixed in Prepared Statements. The bug occurred when a stored procedure was prepared without any parameters. This led to an exception. (Bug#44931)
Fixed a Prepared Statements performance issue. Reading large result sets was slow.
Fixed bug in
ResultSetMetaDatafor statements and prepared statements,getScaleandgetPrecisionreturned incorrect results.