Skip to content

Commit

Permalink
docs: fix JavaDoc for getPreferQueryMode() (#1122)
Browse files Browse the repository at this point in the history
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 43d80cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pgjdbc/src/main/java/org/postgresql/PGConnection.java
Expand Up @@ -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.
* <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();

Expand Down

0 comments on commit 43d80cd

Please sign in to comment.