Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
323f224b
Commit
323f224b
authored
Jul 31, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'DDC-1271' into 2.1.x"
This reverts commit
0d2af886
, reversing changes made to
eb0a4615
.
parent
0d2af886
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
24 deletions
+16
-24
Driver.php
lib/Doctrine/DBAL/Driver/OCI8/Driver.php
+1
-1
OCI8Connection.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
+2
-2
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+5
-5
Driver.php
lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
+2
-6
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+1
-1
PostgreSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
+2
-2
RunSqlCommand.php
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
+2
-6
Version.php
lib/Doctrine/DBAL/Version.php
+1
-1
No files found.
lib/Doctrine/DBAL/Driver/OCI8/Driver.php
View file @
323f224b
...
...
@@ -47,7 +47,7 @@ class Driver implements \Doctrine\DBAL\Driver
*
* @return string The DSN.
*/
pr
otected
function
_constructDsn
(
array
$params
)
pr
ivate
function
_constructDsn
(
array
$params
)
{
$dsn
=
''
;
if
(
isset
(
$params
[
'host'
]))
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
323f224b
...
...
@@ -26,9 +26,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
*/
class
OCI8Connection
implements
\Doctrine\DBAL\Driver\Connection
{
pr
otected
$_dbh
;
pr
ivate
$_dbh
;
pr
otected
$_executeMode
=
OCI_COMMIT_ON_SUCCESS
;
pr
ivate
$_executeMode
=
OCI_COMMIT_ON_SUCCESS
;
/**
* Create a Connection to an Oracle Database using oci8 extension.
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
323f224b
...
...
@@ -30,15 +30,15 @@ use \PDO;
class
OCI8Statement
implements
\Doctrine\DBAL\Driver\Statement
{
/** Statement handle. */
pr
otected
$_sth
;
pr
otected
$_executeMode
;
pr
otected
static
$_PARAM
=
':param'
;
pr
otected
static
$fetchStyleMap
=
array
(
pr
ivate
$_sth
;
pr
ivate
$_executeMode
;
pr
ivate
static
$_PARAM
=
':param'
;
pr
ivate
static
$fetchStyleMap
=
array
(
PDO
::
FETCH_BOTH
=>
OCI_BOTH
,
PDO
::
FETCH_ASSOC
=>
OCI_ASSOC
,
PDO
::
FETCH_NUM
=>
OCI_NUM
);
pr
otected
$_paramMap
=
array
();
pr
ivate
$_paramMap
=
array
();
/**
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
...
...
lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
View file @
323f224b
...
...
@@ -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
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
323f224b
...
...
@@ -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
)
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
323f224b
...
...
@@ -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
];
}
...
...
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
View file @
323f224b
...
...
@@ -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
);
}
}
lib/Doctrine/DBAL/Version.php
View file @
323f224b
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment