diff --git a/docs/content/querying/sql.md b/docs/content/querying/sql.md index a993a76f953..09778119f2c 100644 --- a/docs/content/querying/sql.md +++ b/docs/content/querying/sql.md @@ -382,7 +382,7 @@ Properties connectionProperties = new Properties(); try (Connection connection = DriverManager.getConnection(url, connectionProperties)) { try ( - final Statement statement = client.createStatement(); + final Statement statement = connection.createStatement(); final ResultSet resultSet = statement.executeQuery(query) ) { while (resultSet.next()) {