This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 0343a0d51 docs: update java quickstart to use the PARAM_URI instead of 
the legacy PARAM_URL (#2530)
0343a0d51 is described below

commit 0343a0d510704651e9fa3ab0b6161e92d540de9a
Author: Shuoze Li <[email protected]>
AuthorDate: Sun Feb 16 19:44:35 2025 -0800

    docs: update java quickstart to use the PARAM_URI instead of the legacy 
PARAM_URL (#2530)
    
    Fixes #2528
---
 docs/source/driver/jdbc.rst     | 2 +-
 docs/source/java/quickstart.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/source/driver/jdbc.rst b/docs/source/driver/jdbc.rst
index ed17f125c..c740513b8 100644
--- a/docs/source/driver/jdbc.rst
+++ b/docs/source/driver/jdbc.rst
@@ -57,7 +57,7 @@ or an instance of a ``javax.sql.DataSource`` as the
       .. code-block:: java
 
          final Map<String, Object> parameters = new HashMap<>();
-         parameters.put(AdbcDriver.PARAM_URL, 
"jdbc:postgresql://localhost:5432/postgres");
+         AdbcDriver.PARAM_URI.set(parameters, 
"jdbc:postgresql://localhost:5432/postgres");
          AdbcDatabase db = new JdbcDriver(allocator).open(parameters);
 
 Supported Features
diff --git a/docs/source/java/quickstart.rst b/docs/source/java/quickstart.rst
index c6255c3ae..08f355557 100644
--- a/docs/source/java/quickstart.rst
+++ b/docs/source/java/quickstart.rst
@@ -55,7 +55,7 @@ Usage
 .. code-block:: java
 
    final Map<String, Object> parameters = new HashMap<>();
-   parameters.put(AdbcDriver.PARAM_URL, 
"jdbc:postgresql://localhost:5432/postgres");
+   AdbcDriver.PARAM_URI.set(parameters, 
"jdbc:postgresql://localhost:5432/postgres");
    try (
        BufferAllocator allocator = new RootAllocator();
        AdbcDatabase db = new JdbcDriver(allocator).open(parameters);

Reply via email to