comparison src/main/java/org/monetdb/jdbc/MonetDriver.java.in @ 785:e00866975421

Get rid of JDBC_DEF_PORT There is really no need to make that changeable.
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 30 Jun 2023 11:16:23 +0200 (22 months ago)
parents f261fe3c7fe4
children
comparison
equal deleted inserted replaced
784:f261fe3c7fe4 785:e00866975421
32 * to be set in order to use this driver. 32 * to be set in order to use this driver.
33 * 33 *
34 * This Driver supports MonetDB database URLs. MonetDB URLs are defined as: 34 * This Driver supports MonetDB database URLs. MonetDB URLs are defined as:
35 * <code>jdbc:monetdb://&lt;host&gt;[:&lt;port&gt;]/&lt;database&gt;</code> 35 * <code>jdbc:monetdb://&lt;host&gt;[:&lt;port&gt;]/&lt;database&gt;</code>
36 * where [:&lt;port&gt;] denotes that a port is optional. If not 36 * where [:&lt;port&gt;] denotes that a port is optional. If not
37 * given the default (@JDBC_DEF_PORT@) will be used. 37 * given, port 50000 will be used.
38 *</pre> 38 *</pre>
39 * 39 *
40 * @author Fabian Groffen 40 * @author Fabian Groffen
41 */ 41 */
42 public final class MonetDriver implements Driver { 42 public final class MonetDriver implements Driver {
99 if (!acceptsURL(url)) 99 if (!acceptsURL(url))
100 return null; 100 return null;
101 101
102 final Properties props = new Properties(); 102 final Properties props = new Properties();
103 // set the optional properties and their defaults here 103 // set the optional properties and their defaults here
104 props.put("port", "@JDBC_DEF_PORT@"); 104 props.put("port", "50000");
105 props.put("debug", "false"); 105 props.put("debug", "false");
106 props.put("language", "sql"); // mal, sql, <future> 106 props.put("language", "sql"); // mal, sql, <future>
107 props.put("so_timeout", "0"); 107 props.put("so_timeout", "0");
108 108
109 if (info != null) 109 if (info != null)