JDBC: New connection string parameter onconnect
Details
| Detail name | Value |
|---|---|
| Changelog Number | 18895 |
| Type | New Feature |
| Status | Resolved |
| Fix Versions | JDBC 24.1.0 |
| Resolution Date | 2024-03-25 |
New Feature
The JDBC driver now allows the connection string parameter onconnect. This parameter is used to run a single SQL statement immediately after the connection is established as a part of the connect process.
Example connection string
jdbc:exa:exadb1.example.com/<fingerprint>:8563;onconnect=SELECT 1;
If the execution of the statement fails, the connection will return an error and will not be established.
Restrictions: the statement cannot contain characters that will have influence on the connection string, like “;”.