Skip to content

Commit 2133e4c

Browse files
committed
1 parent 0c42be8 commit 2133e4c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: src/docs/asciidoc/appendices/systemproperties/systemproperties.adoc

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ This property will have no effect if `org.firebirdsql.jdbc.defaultConnectionEnco
5252

5353
The property values are read for each connect, so the value can be changed at any time.
5454

55+
[#systemproperties-default-enable-protocol]
56+
=== Default `enableProtocol` value
57+
58+
`org.firebirdsql.jdbc.defaultEnableProtocol`::
59+
Configures the default value for the `enableProtocol` connection property.
60+
See <<ref-enable-protocol>> for more information.
61+
5562
[[systemproperties-wire-buffers]]
5663
=== Wire protocol buffer sizes
5764

Diff for: src/docs/asciidoc/reference/connection/enableprotocol.adoc

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ However, we recommend using the unmasked version (e.g. `"12"` for protocol versi
2020
* `"*"` -- enable all available protocol versions
2121
* `null` or empty string (`++""++`) -- default behaviour, only use supported protocols
2222

23+
A different default value of `enableProtocol` can be set using the system property <<systemproperties-default-enable-protocol,`org.firebirdsql.jdbc.defaultEnableProtocol`>>.
24+
This system property is checked each time a connection configuration is created, so it can be changed at runtime.
25+
If you use a Jaybird `DataSource` implementation, it uses the value at the time the `DataSource` is created;
26+
if you use `DriverManager` -- this can include third-party data sources, it uses the value at the time the connection is created.
27+
2328
[WARNING]
2429
====
2530
Given these protocol versions and their Firebird version are not supported, there is no guarantee that the driver will function correctly when an unsupported protocol is enabled this way.

0 commit comments

Comments
 (0)