Commit 323f224b authored by Benjamin Eberlei's avatar Benjamin Eberlei

Revert "Merge branch 'DDC-1271' into 2.1.x"

This reverts commit 0d2af886, reversing
changes made to eb0a4615.
parent 0d2af886
......@@ -47,7 +47,7 @@ class Driver implements \Doctrine\DBAL\Driver
*
* @return string The DSN.
*/
protected function _constructDsn(array $params)
private function _constructDsn(array $params)
{
$dsn = '';
if (isset($params['host'])) {
......
......@@ -26,9 +26,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
*/
class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
{
protected $_dbh;
private $_dbh;
protected $_executeMode = OCI_COMMIT_ON_SUCCESS;
private $_executeMode = OCI_COMMIT_ON_SUCCESS;
/**
* Create a Connection to an Oracle Database using oci8 extension.
......
......@@ -30,15 +30,15 @@ use \PDO;
class OCI8Statement implements \Doctrine\DBAL\Driver\Statement
{
/** Statement handle. */
protected $_sth;
protected $_executeMode;
protected static $_PARAM = ':param';
protected static $fetchStyleMap = array(
private $_sth;
private $_executeMode;
private static $_PARAM = ':param';
private static $fetchStyleMap = array(
PDO::FETCH_BOTH => OCI_BOTH,
PDO::FETCH_ASSOC => OCI_ASSOC,
PDO::FETCH_NUM => OCI_NUM
);
protected $_paramMap = array();
private $_paramMap = array();
/**
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
......
......@@ -93,10 +93,6 @@ class Driver implements \Doctrine\DBAL\Driver
public function getDatabase(\Doctrine\DBAL\Connection $conn)
{
$params = $conn->getParams();
if (isset($params['dbname'])) {
return $params['dbname'];
}
return $conn->query('SELECT DATABASE()')->fetchColumn();
}
}
\ No newline at end of file
......@@ -94,7 +94,7 @@ class PostgreSqlPlatform extends AbstractPlatform
public function getDateDiffExpression($date1, $date2)
{
return '(DATE(' . $date1 . ')-DATE(' . $date2 . '))';
return '('.$date1 . '-'.$date2.')';
}
public function getDateAddDaysExpression($date, $days)
......
......@@ -38,10 +38,10 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
$onUpdate = null;
$onDelete = null;
if (preg_match('(ON UPDATE ([a-zA-Z0-9]+( (NULL|ACTION|DEFAULT))?))', $tableForeignKey['condef'], $match)) {
if (preg_match('(ON UPDATE ([a-zA-Z0-9]+))', $tableForeignKey['condef'], $match)) {
$onUpdate = $match[1];
}
if (preg_match('(ON DELETE ([a-zA-Z0-9]+( (NULL|ACTION|DEFAULT))?))', $tableForeignKey['condef'], $match)) {
if (preg_match('(ON DELETE ([a-zA-Z0-9]+))', $tableForeignKey['condef'], $match)) {
$onDelete = $match[1];
}
......
......@@ -78,10 +78,6 @@ EOT
$resultSet = $conn->executeUpdate($sql);
}
ob_start();
\Doctrine\Common\Util\Debug::dump($resultSet, (int) $depth);
$message = ob_get_clean();
$output->write($message);
}
}
......@@ -36,7 +36,7 @@ class Version
/**
* Current Doctrine Version
*/
const VERSION = '2.2.0-DEV';
const VERSION = '2.1.0-DEV';
/**
* Compares a Doctrine version with the current one.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment