Skip to content

Commit 8fc6dfc

Browse files
committed
1 parent 2133e4c commit 8fc6dfc

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

src/docs/asciidoc/appendices/connectionproperties/connectionproperties.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ Boolean property.
304304
Attempts to create a database if it does not exist.
305305
See <<ref-create-database-if-not-exist>> for more information.
306306

307+
a|`reportSQLWarnings`
308+
a|Jaybird specific property ([.since]_Jaybird 6_)
309+
Possible values (case-insensitive): `ALL` (default), `NONE`.
310+
Can be used to disable reporting of ``SQLWarning``s.
311+
See <<ref-report-sql-warnings>> for more information.
312+
307313
|===
308314

309315
In addition, Jaybird allows using arbitrary Database Parameters Block entries as connection properties (provided they are defined in Jaybird's `DpbItems` and `SpbItems` ([.since]_Jaybird 5_), or `ISCConstants` ([.until]_Jaybird 5_)).

src/docs/asciidoc/appendices/systemproperties/systemproperties.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ The property values are read for each connect, so the value can be changed at an
5959
Configures the default value for the `enableProtocol` connection property.
6060
See <<ref-enable-protocol>> for more information.
6161

62+
[#systemproperties-default-report-sql-warnings]
63+
64+
=== Default `reportSQLWarnings` value
65+
66+
`org.firebirdsql.jdbc.defaultReportSQLWarnings`::
67+
Configures the default value for the `reportSQLWarnings` connection property.
68+
See <<ref-report-sql-warnings>> for more information.
69+
6270
[[systemproperties-wire-buffers]]
6371
=== Wire protocol buffer sizes
6472

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[#ref-report-sql-warnings]
2+
=== Reporting of ``SQLWarning``s
3+
4+
The JDBC Specification requires that a JDBC driver reports a `SQLWarning` when it deviates from certain JDBC-specified behaviour (for example, changing a requested result set type), or when the server reports a warning.
5+
6+
These warnings are reported on the `Connection`, `Statement`, or ``ResultSet``footnote:[In the current implementation, Jaybird never has warnings on `ResultSet`], and can be retrieved with `getWarnings()`.
7+
8+
[.since]_Jaybird 6_ The connection property `reportSQLWarnings` can be used to disable the reporting of ``SQLWarning``s.
9+
10+
This connection property supports the following values (case-insensitive):
11+
12+
[horizontal.compact]
13+
`ALL`::
14+
(default) report all ``SQLWarning``s
15+
`NONE`::
16+
Do not report any ``SQLWarning``s
17+
18+
Invalid values on the connection property will be rejected.
19+
20+
The default value can be overridden with the system property `org.firebirdsql.jdbc.defaultReportSQLWarnings`.
21+
It supports the same values as connection property `reportSQLWarnings`.
22+
Invalid values of the system property are ignored.

0 commit comments

Comments
 (0)