You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected function _connect($dsn, array $config)
{
//why only config[flags] and not all config from DataSource in App.php ?
//$connection = new OCI8Connection($dsn, $config['username'], $config['password'], $config['flags']);
//SHOULD IT BE ?
$connection = new OCI8Connection($dsn, $config['username'], $config['password'], $config);
// now works fine for me and charset option is now recognized.
// Solved my problem of charset conversion.
$this->setconnection($connection);
return true;
}
Anyway thanks for making the plugin by the way, works great !
The text was updated successfully, but these errors were encountered:
DataSource configuration, in config\app.php, is NOT 100% recognized,
especially options like charset, persistent, etc…
Option charset is not recognized in this function :
https://github.com/CakeDC/cakephp-oracle-driver/blob/master/src/Database/OCI8/OCI8Connection.php#L55-59
because in file:
https://github.com/CakeDC/cakephp-oracle-driver/blob/master/src/Database/Driver/OracleOCI.php#L20-30
There seems to be a typo.
protected function _connect($dsn, array $config)
{
//why only config[flags] and not all config from DataSource in App.php ?
//$connection = new OCI8Connection($dsn, $config['username'], $config['password'], $config['flags']);
//SHOULD IT BE ?
$connection = new OCI8Connection($dsn, $config['username'], $config['password'], $config);
// now works fine for me and charset option is now recognized.
// Solved my problem of charset conversion.
Anyway thanks for making the plugin by the way, works great !
The text was updated successfully, but these errors were encountered: