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

Method SetODBCVersion

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_environment.cc:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49SQLINTEGER ODBCEnvironment::GetODBCVersion() const { return version_; }
50
51void ODBCEnvironment::SetODBCVersion(SQLINTEGER version) {
52 if (version != version_) {
53 version_ = version;
54 diagnostics_.reset(
55 new Diagnostics(diagnostics_->GetVendor(), diagnostics_->GetDataSourceComponent(),
56 version == SQL_OV_ODBC2 ? OdbcVersion::V_2 : OdbcVersion::V_3));
57 }
58}
59
60SQLINTEGER ODBCEnvironment::GetConnectionPooling() const { return connection_pooling_; }
61

Callers 1

SQLSetEnvAttrFunction · 0.80

Calls 3

GetVendorMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected