If we don't write empty $database values to settings.php, we can actually use default connection options (like port numbers) in the database driver constructors. I tested this with all three: mysql, postgresql, sqlite!

CommentFileSizeAuthor
database-construct-D7.patch3.22 KBdave reid

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

dave reid’s picture

Status: Needs work » Closed (won't fix)

We have worked around this by using !empty(...) in the database connection options. Marking as won't fix.