Skip to content

Commit d9c3287

Browse files
committed
WL13402: Add DNS SRV support to JDBC API
Option OPT_DNS_SRV enables it, just need to pass hostName with full SRV address.
1 parent c8159dc commit d9c3287

File tree

5 files changed

+325
-57
lines changed

5 files changed

+325
-57
lines changed

driver/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ add_library(jdbc STATIC ${MYSQLCPPCONN_SOURCES})
189189

190190
target_link_libraries(jdbc PUBLIC Boost::boost)
191191

192+
IF(WIN32)
193+
target_link_libraries(jdbc PRIVATE Dnsapi)
194+
ELSE()
195+
target_link_libraries(jdbc PRIVATE resolv)
196+
ENDIF()
197+
192198
if (MYSQLCLIENT_STATIC_BINDING)
193199
target_link_libraries(jdbc PRIVATE MySQL::client)
194200
else()

0 commit comments

Comments
 (0)