From da39f03cf2b07ab5852e8ef9974f6e10e1164ef7 Mon Sep 17 00:00:00 2001 From: v-jizhang Date: Fri, 27 May 2022 15:08:08 -0700 Subject: [PATCH] Switch comments in example to match the correct block Cherry-pick of https://github.com/trinodb/trino/pull/12539 Co-authored-by: Jan Was --- presto-docs/src/main/sphinx/installation/jdbc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presto-docs/src/main/sphinx/installation/jdbc.rst b/presto-docs/src/main/sphinx/installation/jdbc.rst index 1e02f01d887f..e7b46453c671 100644 --- a/presto-docs/src/main/sphinx/installation/jdbc.rst +++ b/presto-docs/src/main/sphinx/installation/jdbc.rst @@ -59,7 +59,7 @@ examples are equivalent: .. code-block:: java - // URL parameters + // properties String url = "jdbc:presto://example.net:8080/hive/sales"; Properties properties = new Properties(); properties.setProperty("user", "test"); @@ -67,7 +67,7 @@ examples are equivalent: properties.setProperty("SSL", "true"); Connection connection = DriverManager.getConnection(url, properties); - // properties + // URL parameters String url = "jdbc:presto://example.net:8443/hive/sales?user=test&password=secret&SSL=true"; Connection connection = DriverManager.getConnection(url);