Skip to content

Commit f5df478

Browse files
hTrusher
authored andcommitted
Made dumpQueriesOnException = false by default as per documentation. Added a unit test case for the same.
(cherry picked from commit 196b46c)
1 parent 8d7d26a commit f5df478

File tree

3 files changed

+1429
-1508
lines changed

3 files changed

+1429
-1508
lines changed

src/main/java/org/mariadb/jdbc/internal/util/DefaultOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public enum DefaultOptions {
9595
"Session timeout is defined by the wait_timeout "
9696
+ "server variable. Setting interactiveClient to true will tell the server to use the interactive_timeout "
9797
+ "server variable.", false),
98-
DUMP_QUERY_ON_EXCEPTION("dumpQueriesOnException", Boolean.TRUE, "1.1.0",
98+
DUMP_QUERY_ON_EXCEPTION("dumpQueriesOnException", Boolean.FALSE, "1.1.0",
9999
"If set to 'true', an exception is thrown "
100100
+ "during query execution containing a query string.", false),
101101
USE_OLD_ALIAS_METADATA_BEHAVIOR("useOldAliasMetadataBehavior", Boolean.FALSE, "1.1.9",

src/main/java/org/mariadb/jdbc/internal/util/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class Options implements Cloneable {
102102
public boolean createDatabaseIfNotExist;
103103
public String serverTimezone;
104104
public boolean nullCatalogMeansCurrent = true;
105-
public boolean dumpQueriesOnException = true;
105+
public boolean dumpQueriesOnException;
106106
public boolean useOldAliasMetadataBehavior;
107107
public boolean allowLocalInfile = true;
108108
public boolean cachePrepStmts = true;

0 commit comments

Comments
 (0)