-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBAL 'instancename' and 'connectionstring' connection parameters missing #520
Comments
Here is a a possible fix ("works for me"). add these lines to ->scalarNode('instancename') ->info( 'Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection.'. ' It is generally used to connect to an Oracle RAC server to select the name'. ' of a particular instance.' ) ->end() ->scalarNode('connectstring') ->info( 'Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.'. 'When using this option, you will still need to provide the user and password parameters, but the other '. 'parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods'. ' from Doctrine\DBAL\Connection will no longer function as expected.' ) ->end()
if (isset($params['connectstring'])) { return $params['connectstring']; } |
@jamjamg dude you saved me. I was trying everything because service and servicename wasnt working and I saw this fix. Working like a charm to me! |
@mikeSimonson I follow as @jamjamg said, and I was able to connect and make a simple sql query through console. Before that, I had the error he described. |
@lecneri Thanks for the confirmation of the fix |
@mikeSimonson PR #531 looks good to me! Thanks! |
What is the issue with dbal. Le sam. 2 avr. 2016 22:26, Mahi notifications@github.com a écrit :
|
Hi @mikeSimonson, DBAL was missing the "connectionstring" property, so if you were using it, Just these 3 lines were misisng: if (isset($params['connectstring'])) { return $params['connectstring']; } |
It looks like the Oracle connection parameters
instancename
andconnectstring
are missing (similar to #266 ).They are described in the documentation http://doctrine-orm.readthedocs.org/projects/doctrine-dbal/en/latest/reference/configuration.html#pdo-oci-oci8 but are not in the code. Only
AbstractOracleDriver.php
mentionsinstancename
.If someone tries to use these parameters, this error comes up:
My
composer.json
looks like this:My
composer.lock
has this entry for DBAL:My
config.yml
:The text was updated successfully, but these errors were encountered: