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
ad9c3bc0
Unverified
Commit
ad9c3bc0
authored
Mar 17, 2018
by
Michael Moravec
Committed by
Sergei Morozov
Nov 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop PDO DB2 driver
parent
96365135
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
76 deletions
+8
-76
UPGRADE.md
UPGRADE.md
+8
-0
Driver.php
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
+0
-57
DriverTest.php
tests/Doctrine/Tests/DBAL/Driver/PDOIbm/DriverTest.php
+0
-19
No files found.
UPGRADE.md
View file @
ad9c3bc0
# Upgrade to 3.0
## BC BREAK: Removed PDO DB2 driver
This PDO-based IBM DB2 driver (built on top of pdo_ibm extension) has already been unsupported as of 2.5, it has now been now removed.
The following class has been removed:
*
`Doctrine\DBAL\Driver\PDOIbm\Driver`
## BC BREAK: Removed support for SQL Anywhere 12 and older
DBAL now requires SQL Anywhere 16 or newer, support for unmaintained versions has been dropped.
...
...
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
deleted
100644 → 0
View file @
96365135
<?php
namespace
Doctrine\DBAL\Driver\PDOIbm
;
use
Doctrine\DBAL\Driver\AbstractDB2Driver
;
use
Doctrine\DBAL\Driver\PDOConnection
;
/**
* Driver for the PDO IBM extension.
*/
class
Driver
extends
AbstractDB2Driver
{
/**
* {@inheritdoc}
*/
public
function
connect
(
array
$params
,
$username
=
null
,
$password
=
null
,
array
$driverOptions
=
[])
{
return
new
PDOConnection
(
$this
->
_constructPdoDsn
(
$params
),
$username
,
$password
,
$driverOptions
);
}
/**
* Constructs the IBM PDO DSN.
*
* @param mixed[] $params
*
* @return string The DSN.
*/
private
function
_constructPdoDsn
(
array
$params
)
{
$dsn
=
'ibm:'
;
if
(
isset
(
$params
[
'host'
]))
{
$dsn
.=
'HOSTNAME='
.
$params
[
'host'
]
.
';'
;
}
if
(
isset
(
$params
[
'port'
]))
{
$dsn
.=
'PORT='
.
$params
[
'port'
]
.
';'
;
}
$dsn
.=
'PROTOCOL=TCPIP;'
;
if
(
isset
(
$params
[
'dbname'
]))
{
$dsn
.=
'DATABASE='
.
$params
[
'dbname'
]
.
';'
;
}
return
$dsn
;
}
/**
* {@inheritdoc}
*/
public
function
getName
()
{
return
'pdo_ibm'
;
}
}
tests/Doctrine/Tests/DBAL/Driver/PDOIbm/DriverTest.php
deleted
100644 → 0
View file @
96365135
<?php
namespace
Doctrine\Tests\DBAL\Driver\PDOIbm
;
use
Doctrine\DBAL\Driver\PDOIbm\Driver
;
use
Doctrine\Tests\DBAL\Driver\AbstractDB2DriverTest
;
class
DriverTest
extends
AbstractDB2DriverTest
{
public
function
testReturnsName
()
{
self
::
assertSame
(
'pdo_ibm'
,
$this
->
driver
->
getName
());
}
protected
function
createDriver
()
{
return
new
Driver
();
}
}
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