Skip to content

Commit fc95da6

Browse files
committed
Fix connectivity issues from headers
1 parent a90c2c2 commit fc95da6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_connection.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ void FlightSqlConnection::Connect(const ConnPropertyMap& properties,
161161

162162
std::unique_ptr<FlightClient> flight_client;
163163
ThrowIfNotOK(FlightClient::Connect(location, client_options).Value(&flight_client));
164+
PopulateMetadataSettings(properties);
165+
PopulateCallOptions(properties);
164166

165167
std::unique_ptr<FlightSqlAuthMethod> auth_method =
166168
FlightSqlAuthMethod::FromProperties(flight_client, properties);
@@ -175,9 +177,6 @@ void FlightSqlConnection::Connect(const ConnPropertyMap& properties,
175177

176178
info_.SetProperty(SQL_USER_NAME, auth_method->GetUser());
177179
attribute_[CONNECTION_DEAD] = static_cast<uint32_t>(SQL_FALSE);
178-
179-
PopulateMetadataSettings(properties);
180-
PopulateCallOptions(properties);
181180
} catch (...) {
182181
attribute_[CONNECTION_DEAD] = static_cast<uint32_t>(SQL_TRUE);
183182
sql_client_.reset();

0 commit comments

Comments
 (0)