Permalink
Browse files

docs: fix JavaDoc for getPreferQueryMode() (#1122)

Update the JavaDoc to show that the return type is PreferQueryMode rather than boolean.
  • Loading branch information...
bpd0018 authored and vlsi committed Feb 18, 2018
1 parent cc219aa commit 43d80cd48a54ea91868d15bd2f3806b467519883
Showing with 5 additions and 3 deletions.
  1. +5 −3 pgjdbc/src/main/java/org/postgresql/PGConnection.java
@@ -204,12 +204,14 @@
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.
* <p>
* 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();

0 comments on commit 43d80cd

Please sign in to comment.