Skip to content

Loading…

DBAL-169: PostgreSQL Session init #1328

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

During PostgreSQL Session init it may be interesting to set the search path to a different value than the default.

@doctrinebot

Comment created by @beberlei:

Implemented a generic SQLSessionInit listener that executes a single sql command after connection initializtion.

Example usage:

$evm->addEventListener(new SQLSessionInit("SET SEARCH_PATH TO foo, public, TIMEZONE TO 'Europe/Berlin'"));
$conn = DriverManager::getConnection($params, $config $evm);
@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.