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
1f656a16
Commit
1f656a16
authored
Apr 21, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Db2 to DB2
parent
b7cac8c3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
23 deletions
+23
-23
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+7
-7
DB2Driver.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php
+5
-5
DB2Exception.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Exception.php
+2
-2
DB2Statement.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
+5
-5
Driver.php
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
+2
-2
DriverManager.php
lib/Doctrine/DBAL/DriverManager.php
+1
-1
DB2Platform.php
lib/Doctrine/DBAL/Platforms/DB2Platform.php
+0
-0
DB2SchemaManager.php
lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
+1
-1
No files found.
lib/Doctrine/DBAL/Driver/I
bmDb2/Db
2Connection.php
→
lib/Doctrine/DBAL/Driver/I
BMDB2/DB
2Connection.php
View file @
1f656a16
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\DBAL\Driver\I
bmDb
2
;
namespace
Doctrine\DBAL\Driver\I
BMDB
2
;
class
D
b
2Connection
implements
\Doctrine\DBAL\Driver\Connection
class
D
B
2Connection
implements
\Doctrine\DBAL\Driver\Connection
{
{
private
$_conn
=
null
;
private
$_conn
=
null
;
...
@@ -35,7 +35,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
...
@@ -35,7 +35,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
$this
->
_conn
=
db2_connect
(
$params
[
'dbname'
],
$username
,
$password
,
$driverOptions
);
$this
->
_conn
=
db2_connect
(
$params
[
'dbname'
],
$username
,
$password
,
$driverOptions
);
}
}
if
(
!
$this
->
_conn
)
{
if
(
!
$this
->
_conn
)
{
throw
new
D
b
2Exception
(
db2_conn_errormsg
());
throw
new
D
B
2Exception
(
db2_conn_errormsg
());
}
}
}
}
...
@@ -43,9 +43,9 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
...
@@ -43,9 +43,9 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
{
{
$stmt
=
@
db2_prepare
(
$this
->
_conn
,
$sql
);
$stmt
=
@
db2_prepare
(
$this
->
_conn
,
$sql
);
if
(
!
$stmt
)
{
if
(
!
$stmt
)
{
throw
new
D
b
2Exception
(
db2_stmt_errormsg
());
throw
new
D
B
2Exception
(
db2_stmt_errormsg
());
}
}
return
new
D
b
2Statement
(
$stmt
);
return
new
D
B
2Statement
(
$stmt
);
}
}
function
query
()
function
query
()
...
@@ -87,7 +87,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
...
@@ -87,7 +87,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
function
commit
()
function
commit
()
{
{
if
(
!
db2_commit
(
$this
->
_conn
))
{
if
(
!
db2_commit
(
$this
->
_conn
))
{
throw
new
D
b
2Exception
(
db2_conn_errormsg
(
$this
->
_conn
));
throw
new
D
B
2Exception
(
db2_conn_errormsg
(
$this
->
_conn
));
}
}
db2_autocommit
(
$this
->
_conn
,
DB2_AUTOCOMMIT_ON
);
db2_autocommit
(
$this
->
_conn
,
DB2_AUTOCOMMIT_ON
);
}
}
...
@@ -95,7 +95,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
...
@@ -95,7 +95,7 @@ class Db2Connection implements \Doctrine\DBAL\Driver\Connection
function
rollBack
()
function
rollBack
()
{
{
if
(
!
db2_rollback
(
$this
->
_conn
))
{
if
(
!
db2_rollback
(
$this
->
_conn
))
{
throw
new
D
b
2Exception
(
db2_conn_errormsg
(
$this
->
_conn
));
throw
new
D
B
2Exception
(
db2_conn_errormsg
(
$this
->
_conn
));
}
}
db2_autocommit
(
$this
->
_conn
,
DB2_AUTOCOMMIT_ON
);
db2_autocommit
(
$this
->
_conn
,
DB2_AUTOCOMMIT_ON
);
}
}
...
...
lib/Doctrine/DBAL/Driver/I
bmDb2/Db
2Driver.php
→
lib/Doctrine/DBAL/Driver/I
BMDB2/DB
2Driver.php
View file @
1f656a16
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\DBAL\Driver\I
bmDb
2
;
namespace
Doctrine\DBAL\Driver\I
BMDB
2
;
use
Doctrine\DBAL\Driver
,
use
Doctrine\DBAL\Driver
,
Doctrine\DBAL\Connection
;
Doctrine\DBAL\Connection
;
...
@@ -33,7 +33,7 @@ use Doctrine\DBAL\Driver,
...
@@ -33,7 +33,7 @@ use Doctrine\DBAL\Driver,
* @version $Revision$
* @version $Revision$
* @author Benjamin Eberlei <kontakt@beberlei.de>
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
*/
class
D
b
2Driver
implements
Driver
class
D
B
2Driver
implements
Driver
{
{
/**
/**
* Attempts to create a connection with the database.
* Attempts to create a connection with the database.
...
@@ -63,7 +63,7 @@ class Db2Driver implements Driver
...
@@ -63,7 +63,7 @@ class Db2Driver implements Driver
$password
=
null
;
$password
=
null
;
}
}
return
new
D
b
2Connection
(
$params
,
$username
,
$password
,
$driverOptions
);
return
new
D
B
2Connection
(
$params
,
$username
,
$password
,
$driverOptions
);
}
}
/**
/**
...
@@ -74,7 +74,7 @@ class Db2Driver implements Driver
...
@@ -74,7 +74,7 @@ class Db2Driver implements Driver
*/
*/
public
function
getDatabasePlatform
()
public
function
getDatabasePlatform
()
{
{
return
new
\Doctrine\DBAL\Platforms\D
b
2Platform
;
return
new
\Doctrine\DBAL\Platforms\D
B
2Platform
;
}
}
/**
/**
...
@@ -86,7 +86,7 @@ class Db2Driver implements Driver
...
@@ -86,7 +86,7 @@ class Db2Driver implements Driver
*/
*/
public
function
getSchemaManager
(
Connection
$conn
)
public
function
getSchemaManager
(
Connection
$conn
)
{
{
return
new
\Doctrine\DBAL\Schema\D
b
2SchemaManager
(
$conn
);
return
new
\Doctrine\DBAL\Schema\D
B
2SchemaManager
(
$conn
);
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Driver/I
bmDb2/Db
2Exception.php
→
lib/Doctrine/DBAL/Driver/I
BMDB2/DB
2Exception.php
View file @
1f656a16
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\DBAL\Driver\I
bmDb
2
;
namespace
Doctrine\DBAL\Driver\I
BMDB
2
;
class
D
b
2Exception
extends
\Exception
class
D
B
2Exception
extends
\Exception
{
{
}
}
\ No newline at end of file
lib/Doctrine/DBAL/Driver/I
bmDb2/Db
2Statement.php
→
lib/Doctrine/DBAL/Driver/I
BMDB2/DB
2Statement.php
View file @
1f656a16
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\DBAL\Driver\I
bmDb
2
;
namespace
Doctrine\DBAL\Driver\I
BMDB
2
;
class
D
b
2Statement
implements
\Doctrine\DBAL\Driver\Statement
class
D
B
2Statement
implements
\Doctrine\DBAL\Driver\Statement
{
{
private
$_stmt
=
null
;
private
$_stmt
=
null
;
...
@@ -92,7 +92,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
...
@@ -92,7 +92,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
}
}
if
(
!
db2_bind_param
(
$this
->
_stmt
,
$column
,
"variable"
,
DB2_PARAM_IN
,
$type
))
{
if
(
!
db2_bind_param
(
$this
->
_stmt
,
$column
,
"variable"
,
DB2_PARAM_IN
,
$type
))
{
throw
new
D
b
2Exception
(
db2_stmt_errormsg
());
throw
new
D
B
2Exception
(
db2_stmt_errormsg
());
}
}
return
true
;
return
true
;
}
}
...
@@ -191,7 +191,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
...
@@ -191,7 +191,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
$retval
=
@
db2_execute
(
$this
->
_stmt
,
$params
);
$retval
=
@
db2_execute
(
$this
->
_stmt
,
$params
);
if
(
$retval
===
false
)
{
if
(
$retval
===
false
)
{
throw
new
D
b
2Exception
(
db2_stmt_errormsg
());
throw
new
D
B
2Exception
(
db2_stmt_errormsg
());
}
}
return
$retval
;
return
$retval
;
}
}
...
@@ -233,7 +233,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
...
@@ -233,7 +233,7 @@ class Db2Statement implements \Doctrine\DBAL\Driver\Statement
case
\PDO
::
FETCH_NUM
:
case
\PDO
::
FETCH_NUM
:
return
db2_fetch_array
(
$this
->
_stmt
);
return
db2_fetch_array
(
$this
->
_stmt
);
default
:
default
:
throw
new
D
b
2Exception
(
"Given Fetch-Style "
.
$fetchStyle
.
" is not supported."
);
throw
new
D
B
2Exception
(
"Given Fetch-Style "
.
$fetchStyle
.
" is not supported."
);
}
}
}
}
...
...
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
View file @
1f656a16
...
@@ -87,7 +87,7 @@ class Driver implements \Doctrine\DBAL\Driver
...
@@ -87,7 +87,7 @@ class Driver implements \Doctrine\DBAL\Driver
*/
*/
public
function
getDatabasePlatform
()
public
function
getDatabasePlatform
()
{
{
return
new
\Doctrine\DBAL\Platforms\D
b
2Platform
;
return
new
\Doctrine\DBAL\Platforms\D
B
2Platform
;
}
}
/**
/**
...
@@ -99,7 +99,7 @@ class Driver implements \Doctrine\DBAL\Driver
...
@@ -99,7 +99,7 @@ class Driver implements \Doctrine\DBAL\Driver
*/
*/
public
function
getSchemaManager
(
Connection
$conn
)
public
function
getSchemaManager
(
Connection
$conn
)
{
{
return
new
\Doctrine\DBAL\Schema\D
b
2SchemaManager
(
$conn
);
return
new
\Doctrine\DBAL\Schema\D
B
2SchemaManager
(
$conn
);
}
}
/**
/**
...
...
lib/Doctrine/DBAL/DriverManager.php
View file @
1f656a16
...
@@ -44,7 +44,7 @@ final class DriverManager
...
@@ -44,7 +44,7 @@ final class DriverManager
'pdo_oci'
=>
'Doctrine\DBAL\Driver\PDOOracle\Driver'
,
'pdo_oci'
=>
'Doctrine\DBAL\Driver\PDOOracle\Driver'
,
'pdo_mssql'
=>
'Doctrine\DBAL\Driver\PDOMsSql\Driver'
,
'pdo_mssql'
=>
'Doctrine\DBAL\Driver\PDOMsSql\Driver'
,
'oci8'
=>
'Doctrine\DBAL\Driver\OCI8\Driver'
,
'oci8'
=>
'Doctrine\DBAL\Driver\OCI8\Driver'
,
'ibm_db2'
=>
'Doctrine\DBAL\Driver\I
bmDb2\Db
2Driver'
,
'ibm_db2'
=>
'Doctrine\DBAL\Driver\I
BMDB2\DB
2Driver'
,
'pdo_ibm'
=>
'Doctrine\DBAL\Driver\PDOIbm\Driver'
,
'pdo_ibm'
=>
'Doctrine\DBAL\Driver\PDOIbm\Driver'
,
);
);
...
...
lib/Doctrine/DBAL/Platforms/D
b
2Platform.php
→
lib/Doctrine/DBAL/Platforms/D
B
2Platform.php
View file @
1f656a16
File moved
lib/Doctrine/DBAL/Schema/D
b
2SchemaManager.php
→
lib/Doctrine/DBAL/Schema/D
B
2SchemaManager.php
View file @
1f656a16
...
@@ -30,7 +30,7 @@ namespace Doctrine\DBAL\Schema;
...
@@ -30,7 +30,7 @@ namespace Doctrine\DBAL\Schema;
* @version $Revision$
* @version $Revision$
* @author Benjamin Eberlei <kontakt@beberlei.de>
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
*/
class
D
b
2SchemaManager
extends
AbstractSchemaManager
class
D
B
2SchemaManager
extends
AbstractSchemaManager
{
{
/**
/**
* Return a list of all tables in the current database
* Return a list of all tables in the current database
...
...
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