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
0d2af886
Commit
0d2af886
authored
Jul 31, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DDC-1271' into 2.1.x
parents
eb0a4615
88d0e98c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
16 deletions
+24
-16
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
+6
-2
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
+6
-2
Version.php
lib/Doctrine/DBAL/Version.php
+1
-1
No files found.
lib/Doctrine/DBAL/Driver/OCI8/Driver.php
View file @
0d2af886
...
...
@@ -47,7 +47,7 @@ class Driver implements \Doctrine\DBAL\Driver
*
* @return string The DSN.
*/
pr
ivate
function
_constructDsn
(
array
$params
)
pr
otected
function
_constructDsn
(
array
$params
)
{
$dsn
=
''
;
if
(
isset
(
$params
[
'host'
]))
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
0d2af886
...
...
@@ -26,9 +26,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
*/
class
OCI8Connection
implements
\Doctrine\DBAL\Driver\Connection
{
pr
ivate
$_dbh
;
pr
otected
$_dbh
;
pr
ivate
$_executeMode
=
OCI_COMMIT_ON_SUCCESS
;
pr
otected
$_executeMode
=
OCI_COMMIT_ON_SUCCESS
;
/**
* Create a Connection to an Oracle Database using oci8 extension.
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
0d2af886
...
...
@@ -30,15 +30,15 @@ use \PDO;
class
OCI8Statement
implements
\Doctrine\DBAL\Driver\Statement
{
/** Statement handle. */
pr
ivate
$_sth
;
pr
ivate
$_executeMode
;
pr
ivate
static
$_PARAM
=
':param'
;
pr
ivate
static
$fetchStyleMap
=
array
(
pr
otected
$_sth
;
pr
otected
$_executeMode
;
pr
otected
static
$_PARAM
=
':param'
;
pr
otected
static
$fetchStyleMap
=
array
(
PDO
::
FETCH_BOTH
=>
OCI_BOTH
,
PDO
::
FETCH_ASSOC
=>
OCI_ASSOC
,
PDO
::
FETCH_NUM
=>
OCI_NUM
);
pr
ivate
$_paramMap
=
array
();
pr
otected
$_paramMap
=
array
();
/**
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
...
...
lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
View file @
0d2af886
...
...
@@ -93,6 +93,10 @@ 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 @
0d2af886
...
...
@@ -94,7 +94,7 @@ class PostgreSqlPlatform extends AbstractPlatform
public
function
getDateDiffExpression
(
$date1
,
$date2
)
{
return
'(
'
.
$date1
.
'-'
.
$date2
.
'
)'
;
return
'(
DATE('
.
$date1
.
')-DATE('
.
$date2
.
')
)'
;
}
public
function
getDateAddDaysExpression
(
$date
,
$days
)
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
0d2af886
...
...
@@ -38,10 +38,10 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
$onUpdate
=
null
;
$onDelete
=
null
;
if
(
preg_match
(
'(ON UPDATE ([a-zA-Z0-9]+))'
,
$tableForeignKey
[
'condef'
],
$match
))
{
if
(
preg_match
(
'(ON UPDATE ([a-zA-Z0-9]+
( (NULL|ACTION|DEFAULT))?
))'
,
$tableForeignKey
[
'condef'
],
$match
))
{
$onUpdate
=
$match
[
1
];
}
if
(
preg_match
(
'(ON DELETE ([a-zA-Z0-9]+))'
,
$tableForeignKey
[
'condef'
],
$match
))
{
if
(
preg_match
(
'(ON DELETE ([a-zA-Z0-9]+
( (NULL|ACTION|DEFAULT))?
))'
,
$tableForeignKey
[
'condef'
],
$match
))
{
$onDelete
=
$match
[
1
];
}
...
...
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
View file @
0d2af886
...
...
@@ -78,6 +78,10 @@ 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 @
0d2af886
...
...
@@ -36,7 +36,7 @@ class Version
/**
* Current Doctrine Version
*/
const
VERSION
=
'2.
1
.0-DEV'
;
const
VERSION
=
'2.
2
.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