Details

Description

Attributes for a Derby connection can be set via semicolon-separated lists on the connection url as well as in a Properties object passed to the java.sql.DriverManager.getConnection() and java.sql.Driver.connect() methods. The JDBC spec does not indicate what should happen if an attribute is specified both on the connection url and in the Properties object. For some databases, like Derby, the attributes on the connection url trump the attributes in the Properties object. For other databases, like MySQL, the reverse is true.

Because the JDBC spec does not dictate standard behavior here, we should document what Derby does. This information would be useful in some or all of the following sections:

Kim Haase
added a comment - 24/Apr/12 18:37 Thanks for the guidance, Rick. I'm attaching DERBY-5516 .diff, DERBY-5516 .stat, and DERBY-5516 .zip, with changes to the following:
M src/devguide/cdevdvlp51654.dita
M src/devguide/tdevdvlp36289.dita
M src/ref/rrefattrib24612.dita
M src/ref/rrefjdbc34565.dita
M src/ref/rrefjdbc10889.dita
The java.sql.Driver topic didn't seem like a logical place to put this information. I looked for other possibilities, but I think you found the best locations.
Please let me know what changes might be needed here.