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

Function TEST

cpp/src/arrow/flight/sql/odbc/tests/connection_test.cc:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43TYPED_TEST_SUITE(ConnectionHandleTest, TestTypesHandle);
44
45TEST(ODBCHandles, TestSQLAllocAndFreeEnv) {
46 // Allocate an environment handle
47 SQLHENV env;
48 ASSERT_EQ(SQL_SUCCESS, SQLAllocEnv(&env));
49
50 // Check for valid handle
51 ASSERT_NE(nullptr, env);
52
53 // Free environment handle
54 ASSERT_EQ(SQL_SUCCESS, SQLFreeEnv(env));
55}
56
57TEST(ODBCHandles, TestSQLAllocAndFreeHandleConnect) {
58 SQLHENV env;

Callers

nothing calls this directly

Calls 8

SQLAllocEnvFunction · 0.85
SQLFreeEnvFunction · 0.85
SQLAllocConnectFunction · 0.85
SQLFreeConnectFunction · 0.85
SQLAllocHandleFunction · 0.50
SQLFreeHandleFunction · 0.50
SQLGetEnvAttrFunction · 0.50
SQLSetEnvAttrFunction · 0.50

Tested by

no test coverage detected