Ensure that the driver schema dialects use is connected.

Failing to connect the driver causes failures when identifiers are quoted using cached schema objects.

Fixes #4031
I figured that might lead to multiple calls to connect() as the driver needs a connection to build each column and each index.