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


##########
c/driver_manager/adbc_driver_manager.cc:
##########


Review Comment:
   do we really need to validate the scheme here rather than just let the 
driver handle validating the URI itself?



##########
c/driver_manager/adbc_driver_manager.cc:
##########
@@ -1691,16 +1691,45 @@ AdbcStatusCode AdbcDatabaseSetOption(struct 
AdbcDatabase* database, const char*
   TempDatabase* args = reinterpret_cast<TempDatabase*>(database->private_data);
   if (std::strcmp(key, "driver") == 0) {
     std::string_view v{value};
-    std::string::size_type pos = v.find("://");
+    std::string::size_type pos = v.find(":");
     if (pos != std::string::npos) {
       std::string_view d = v.substr(0, pos);
       args->driver = std::string{d};
-      args->options["uri"] = std::string{v};
+
+      auto next = v.at(pos + 1);

Review Comment:
   done



-- 
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