Skip to content

Commit db1f5cc

Browse files
committed
Fix JDBC unit tests to allow cross-version testing.
1 parent 231dbd0 commit db1f5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdbc/test/unit/classes/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ void connection::default_connector_attributes() {
23942394
"ASC;";
23952395

23962396
std::map<sql::SQLString, sql::SQLString> attributes = {
2397-
{"_connector_version", MYCPPCONN_DM_VERSION},
2397+
{"_connector_version", con->getMetaData()->getDriverVersion()},
23982398
{"_connector_license", MYSQL_CONCPP_LICENSE},
23992399
{"_connector_name", "mysql-connector-cpp"}};
24002400

0 commit comments

Comments
 (0)