MCPcopy Create free account
hub / github.com/apache/arrow / PinDriverModule

Function PinDriverModule

cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc:39–43  ·  view source on GitHub ↗

GH-49538: Hold a handle to the driver for the entire duration of the test suite to avoid a segfault on teardown. This most likely due to having two statically linked copies of gRPC in the test program (one from the driver and one from the mock server).

Source from the content-addressed store, hash-verified

37// statically linked copies of gRPC in the test program (one from the driver and
38// one from the mock server).
39void PinDriverModule() {
40 HMODULE unused = nullptr;
41 GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, ARROW_FLIGHT_SQL_ODBC_DLL_FILE_NAME,
42 &unused);
43}
44
45} // namespace
46#endif // _WIN32

Callers 1

ConnectWithStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected