Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetDriver.java.in @ 658:108123ca6889
Add autocommit=true/false option to jdbc url
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 09 Sep 2022 15:20:55 +0200 (2022-09-09) |
parents | dd9b4fb14256 |
children | ee1f3b3ff5fd |
comparison
equal
deleted
inserted
replaced
657:8476d6f4378f | 658:108123ca6889 |
---|---|
193 public DriverPropertyInfo[] getPropertyInfo(final String url, final Properties info) { | 193 public DriverPropertyInfo[] getPropertyInfo(final String url, final Properties info) { |
194 if (!acceptsURL(url)) | 194 if (!acceptsURL(url)) |
195 return null; | 195 return null; |
196 | 196 |
197 final String[] boolean_choices = new String[] { "true", "false" }; | 197 final String[] boolean_choices = new String[] { "true", "false" }; |
198 final DriverPropertyInfo[] dpi = new DriverPropertyInfo[9]; // we currently support 9 connection properties | 198 final DriverPropertyInfo[] dpi = new DriverPropertyInfo[10]; // we currently support 10 connection properties |
199 | 199 |
200 DriverPropertyInfo prop = new DriverPropertyInfo("user", info != null ? info.getProperty("user") : null); | 200 DriverPropertyInfo prop = new DriverPropertyInfo("user", info != null ? info.getProperty("user") : null); |
201 prop.required = true; | 201 prop.required = true; |
202 prop.description = "The user loginname to use when authenticating on the database server"; | 202 prop.description = "The user loginname to use when authenticating on the database server"; |
203 dpi[0] = prop; | 203 dpi[0] = prop; |
245 prop = new DriverPropertyInfo("so_timeout", "0"); | 245 prop = new DriverPropertyInfo("so_timeout", "0"); |
246 prop.required = false; | 246 prop.required = false; |
247 prop.description = "Defines the maximum time to wait in milliseconds on a blocking read socket call"; // this corresponds to the Connection.setNetworkTimeout() method introduced in JDBC 4.1 | 247 prop.description = "Defines the maximum time to wait in milliseconds on a blocking read socket call"; // this corresponds to the Connection.setNetworkTimeout() method introduced in JDBC 4.1 |
248 dpi[8] = prop; | 248 dpi[8] = prop; |
249 | 249 |
250 /* next property is no longer supported in: new MonetConnection(props) | 250 prop = new DriverPropertyInfo("autocommit", "true"); |
251 prop = new DriverPropertyInfo("follow_redirects", "true"); | 251 prop.required = false; |
252 prop.required = false; | 252 prop.description = "Whether the connection should start in auto-commit mode"; |
253 prop.description = "Whether redirects issued by the server should be followed"; | |
254 prop.choices = boolean_choices; | 253 prop.choices = boolean_choices; |
255 dpi[9] = prop; | 254 dpi[9] = prop; |
256 */ | |
257 | 255 |
258 return dpi; | 256 return dpi; |
259 } | 257 } |
260 | 258 |
261 /** | 259 /** |