Skip to content
Permalink
Browse files

more spelling mistakes for preferQueryMode (#850)

* more spelling mistakes for preferquerymode

* more spelling mistakes for preferquerymode
  • Loading branch information
davecramer committed Jun 27, 2017
1 parent fb5df7f commit 73bc3c1b7acda676f366631ff7e28f09a3399f37
@@ -201,7 +201,7 @@ In addition to the standard connection parameters the driver supports a number o
| socketFactory | String | null | Specify a socket factory for socket creation |
| socketFactoryArg | String | null | Argument forwarded to constructor of SocketFactory class. |
| autosave | String | never | Specifies what the driver should do if a query fails, possible values: always, never, conservative |
| preferQueryMode | String | extended | Specifies which mode is used to execute queries to database, possible values: extended, extendedForPrepared, extendedCacheEveryting, simple |
| preferQueryMode | String | extended | Specifies which mode is used to execute queries to database, possible values: extended, extendedForPrepared, extendedCacheEverything, simple |
| reWriteBatchedInserts | Boolean | false | Enable optimization to rewrite and collapse compatible INSERT statements that are batched. |

## Contributing
@@ -1237,7 +1237,7 @@ public PreferQueryMode getPreferQueryMode() {

/**
* @see PGProperty#PREFER_QUERY_MODE
* @param preferQueryMode extended, simple, extendedForPrepared, or extendedCacheEveryting
* @param preferQueryMode extended, simple, extendedForPrepared, or extendedCacheEverything
*/
public void setPreferQueryMode(PreferQueryMode preferQueryMode) {
PGProperty.PREFER_QUERY_MODE.set(properties, preferQueryMode.value());
@@ -272,7 +272,7 @@ private boolean executeCachedSql(String sql, int flags, String[] columnNames) th
Object key = queryExecutor
.createQueryKey(sql, replaceProcessingEnabled, shouldUseParameterized, columnNames);
CachedQuery cachedQuery;
boolean shouldCache = preferQueryMode == PreferQueryMode.EXTENDED_CACHE_EVERYTING;
boolean shouldCache = preferQueryMode == PreferQueryMode.EXTENDED_CACHE_EVERYTHING;
if (shouldCache) {
cachedQuery = queryExecutor.borrowQueryByKey(key);
} else {
@@ -17,7 +17,7 @@
SIMPLE("simple"),
EXTENDED_FOR_PREPARED("extendedForPrepared"),
EXTENDED("extended"),
EXTENDED_CACHE_EVERYTING("extendedCacheEveryting");
EXTENDED_CACHE_EVERYTHING("extendedCacheEverything");

private final String value;

0 comments on commit 73bc3c1

Please sign in to comment.
You can’t perform that action at this time.