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
Hide 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
...
@@ -47,7 +47,7 @@ class Driver implements \Doctrine\DBAL\Driver
*
*
* @return string The DSN.
* @return string The DSN.
*/
*/
pr
otected
function
_constructDsn
(
array
$params
)
pr
ivate
function
_constructDsn
(
array
$params
)
{
{
$dsn
=
''
;
$dsn
=
''
;
if
(
isset
(
$params
[
'host'
]))
{
if
(
isset
(
$params
[
'host'
]))
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
323f224b
...
@@ -26,9 +26,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
...
@@ -26,9 +26,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
*/
*/
class
OCI8Connection
implements
\Doctrine\DBAL\Driver\Connection
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.
* 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;
...
@@ -30,15 +30,15 @@ use \PDO;
class
OCI8Statement
implements
\Doctrine\DBAL\Driver\Statement
class
OCI8Statement
implements
\Doctrine\DBAL\Driver\Statement
{
{
/** Statement handle. */
/** Statement handle. */
pr
otected
$_sth
;
pr
ivate
$_sth
;
pr
otected
$_executeMode
;
pr
ivate
$_executeMode
;
pr
otected
static
$_PARAM
=
':param'
;
pr
ivate
static
$_PARAM
=
':param'
;
pr
otected
static
$fetchStyleMap
=
array
(
pr
ivate
static
$fetchStyleMap
=
array
(
PDO
::
FETCH_BOTH
=>
OCI_BOTH
,
PDO
::
FETCH_BOTH
=>
OCI_BOTH
,
PDO
::
FETCH_ASSOC
=>
OCI_ASSOC
,
PDO
::
FETCH_ASSOC
=>
OCI_ASSOC
,
PDO
::
FETCH_NUM
=>
OCI_NUM
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.
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
...
...
lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
View file @
323f224b
...
@@ -71,7 +71,7 @@ class Driver implements \Doctrine\DBAL\Driver
...
@@ -71,7 +71,7 @@ class Driver implements \Doctrine\DBAL\Driver
if
(
isset
(
$params
[
'charset'
]))
{
if
(
isset
(
$params
[
'charset'
]))
{
$dsn
.=
'charset='
.
$params
[
'charset'
]
.
';'
;
$dsn
.=
'charset='
.
$params
[
'charset'
]
.
';'
;
}
}
return
$dsn
;
return
$dsn
;
}
}
...
@@ -93,10 +93,6 @@ class Driver implements \Doctrine\DBAL\Driver
...
@@ -93,10 +93,6 @@ class Driver implements \Doctrine\DBAL\Driver
public
function
getDatabase
(
\Doctrine\DBAL\Connection
$conn
)
public
function
getDatabase
(
\Doctrine\DBAL\Connection
$conn
)
{
{
$params
=
$conn
->
getParams
();
$params
=
$conn
->
getParams
();
return
$params
[
'dbname'
];
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
...
@@ -94,7 +94,7 @@ class PostgreSqlPlatform extends AbstractPlatform
public
function
getDateDiffExpression
(
$date1
,
$date2
)
public
function
getDateDiffExpression
(
$date1
,
$date2
)
{
{
return
'(
DATE('
.
$date1
.
')-DATE('
.
$date2
.
')
)'
;
return
'(
'
.
$date1
.
'-'
.
$date2
.
'
)'
;
}
}
public
function
getDateAddDaysExpression
(
$date
,
$days
)
public
function
getDateAddDaysExpression
(
$date
,
$days
)
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
323f224b
...
@@ -38,10 +38,10 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
...
@@ -38,10 +38,10 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
$onUpdate
=
null
;
$onUpdate
=
null
;
$onDelete
=
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
];
$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
];
$onDelete
=
$match
[
1
];
}
}
...
...
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
View file @
323f224b
...
@@ -26,7 +26,7 @@ use Symfony\Component\Console\Input\InputArgument,
...
@@ -26,7 +26,7 @@ use Symfony\Component\Console\Input\InputArgument,
/**
/**
* Task for executing arbitrary SQL that can come from a file or directly from
* Task for executing arbitrary SQL that can come from a file or directly from
* the command line.
* the command line.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 2.0
* @since 2.0
...
@@ -71,17 +71,13 @@ EOT
...
@@ -71,17 +71,13 @@ EOT
if
(
!
is_numeric
(
$depth
))
{
if
(
!
is_numeric
(
$depth
))
{
throw
new
\LogicException
(
"Option 'depth' must contains an integer value"
);
throw
new
\LogicException
(
"Option 'depth' must contains an integer value"
);
}
}
if
(
preg_match
(
'/^select/i'
,
$sql
))
{
if
(
preg_match
(
'/^select/i'
,
$sql
))
{
$resultSet
=
$conn
->
fetchAll
(
$sql
);
$resultSet
=
$conn
->
fetchAll
(
$sql
);
}
else
{
}
else
{
$resultSet
=
$conn
->
executeUpdate
(
$sql
);
$resultSet
=
$conn
->
executeUpdate
(
$sql
);
}
}
ob_start
();
\Doctrine\Common\Util\Debug
::
dump
(
$resultSet
,
(
int
)
$depth
);
\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
...
@@ -36,7 +36,7 @@ class Version
/**
/**
* Current Doctrine Version
* Current Doctrine Version
*/
*/
const
VERSION
=
'2.
2
.0-DEV'
;
const
VERSION
=
'2.
1
.0-DEV'
;
/**
/**
* Compares a Doctrine version with the current one.
* 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