Link Here
|
20 |
#include "driver_manager.h" |
20 |
#include "driver_manager.h" |
21 |
|
21 |
|
22 |
#include "mysql_driver.h" |
22 |
#include "mysql_driver.h" |
|
|
23 |
#if defined(MYSQLCPPCONN_VERSION_1_1_4) |
24 |
#include "cppconn/version_info.h" |
25 |
#endif |
23 |
#include "cppconn/driver.h" |
26 |
#include "cppconn/driver.h" |
24 |
#include "cppconn/statement.h" |
27 |
#include "cppconn/statement.h" |
25 |
#include "cppconn/exception.h" |
28 |
#include "cppconn/exception.h" |
Link Here
|
402 |
ConnectOptionsMap::iterator prop_iter= properties.find(prop_name); |
405 |
ConnectOptionsMap::iterator prop_iter= properties.find(prop_name); |
403 |
if (properties.end() != prop_iter) |
406 |
if (properties.end() != prop_iter) |
404 |
{ |
407 |
{ |
|
|
408 |
#if defined(MYCPPCONN_DM_PATCH_VERSION) && (MYCPPCONN_DM_MAJOR_VERSION > 1 || MYCPPCONN_DM_MINOR_VERSION > 1 || MYCPPCONN_DM_PATCH_VERSION >= 5) |
409 |
sql::SQLString &val= *prop_iter->second.get<sql::SQLString>(); |
410 |
#else |
405 |
sql::SQLString &val= boost::get<sql::SQLString>(prop_iter->second); |
411 |
sql::SQLString &val= boost::get<sql::SQLString>(prop_iter->second); |
|
|
412 |
#endif |
406 |
if (val->empty()) |
413 |
if (val->empty()) |
407 |
properties.erase(prop_iter); |
414 |
properties.erase(prop_iter); |
408 |
} |
415 |
} |