public function initConnection(PDO $con, array $settings)
    {
        $con->exec("ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'");
        $con->exec("ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'");
        if (isset($settings['queries']) && is_array($settings['queries'])) {
            foreach ($settings['queries'] as $queries) {
                foreach ((array) $queries as $query) {
                    $con->exec($query);
                }
            }
        }
    }
public function initConnection(PDO $con, array $settings)
    {
        $con->exec("ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'");
        $con->exec("ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'");
        if (isset($settings['queries']) && is_array($settings['queries'])) {
            foreach ($settings['queries'] as $queries) {
                foreach ((array) $queries as $query) {
                    $con->exec($query);
                }
            }
        }
    }
public function initConnection ( PDO $ con , array $ settings ) { $ con -> exec ( "ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'" ) ; $ con -> exec ( "ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'" ) ; if ( isset ( $ settings [ 'queries' ] ) && is_array ( $ settings [ 'queries' ] ) ) { foreach ( $ settings [ 'queries' ] as $ queries ) { foreach ( ( array ) $ queries as $ query ) { $ con -> exec ( $ query ) ; } } } }
This method is called after a connection was created to run necessary
post-initialization queries or code.
Removes the charset query and adds the date queries

@see       parent::initConnection()

@param PDO   $con
@param array $settings A $PDO PDO connection instance
This method is called after a connection was created to run necessary post - initialization queries or code . Removes the charset query and adds the date queries