Skip to content

Commit

Permalink
Switch comments in example to match the correct block
Browse files Browse the repository at this point in the history
Cherry-pick of trinodb/trino#12539

Co-authored-by: Jan Was <jan.was@starburstdata.com>
  • Loading branch information
2 people authored and rschlussel committed Jun 2, 2022
1 parent 51f5cc1 commit da39f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presto-docs/src/main/sphinx/installation/jdbc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ 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");
properties.setProperty("password", "secret");
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);
Expand Down

0 comments on commit da39f03

Please sign in to comment.