zeroshade commented on code in PR #3876:
URL: https://github.com/apache/arrow-adbc/pull/3876#discussion_r2729162809


##########
c/driver_manager/adbc_driver_manager.cc:
##########
@@ -398,6 +416,59 @@ AdbcStatusCode LoadDriverFromRegistry(HKEY root, const 
std::wstring& driver_name
 }
 #endif  // _WIN32
 
+#define CHECK_STATUS(EXPR)                                \
+  if (auto _status = (EXPR); _status != ADBC_STATUS_OK) { \
+    return _status;                                       \
+  }
+
+AdbcStatusCode ProcessProfileValue(std::string_view value, std::string& out,
+                                   struct AdbcError* error) {
+  if (value.empty()) {
+    SetError(error, "Profile value is null");
+    return ADBC_STATUS_INVALID_ARGUMENT;
+  }
+
+  const auto pos = value.find("env_var(");
+  if (pos == std::string_view::npos || pos != 0) {

Review Comment:
   good point. fixing this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to