From 43d80cd48a54ea91868d15bd2f3806b467519883 Mon Sep 17 00:00:00 2001 From: bpd0018 <17967090+bpd0018@users.noreply.github.com> Date: Sun, 18 Feb 2018 03:38:53 -0600 Subject: [PATCH] docs: fix JavaDoc for getPreferQueryMode() (#1122) Update the JavaDoc to show that the return type is PreferQueryMode rather than boolean. --- pgjdbc/src/main/java/org/postgresql/PGConnection.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pgjdbc/src/main/java/org/postgresql/PGConnection.java b/pgjdbc/src/main/java/org/postgresql/PGConnection.java index ec849568e3..ad2172a8e6 100644 --- a/pgjdbc/src/main/java/org/postgresql/PGConnection.java +++ b/pgjdbc/src/main/java/org/postgresql/PGConnection.java @@ -204,12 +204,14 @@ public interface PGConnection { String escapeLiteral(String literal) throws SQLException; /** - * Returns true if the connection is configured to use "simple 'Q' execute" commands only - * When running in simple protocol only, certain features are not available: callable statements, + * Returns the query mode for this connection. + *

+ * When running in simple query mode, certain features are not available: callable statements, * partial result set fetch, bytea type, etc. * The list of supported features is subject to change. * - * @return true if the connection is configured to use "simple 'Q' execute" commands only + * @return the preferred query mode + * @see PreferQueryMode */ PreferQueryMode getPreferQueryMode();