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
d8dddffc
Commit
d8dddffc
authored
Oct 30, 2006
by
runa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new datadict objects need the PDO object, not Doctrine_Connection
parent
8f69e2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Connection.php
lib/Doctrine/Connection.php
+5
-5
No files found.
lib/Doctrine/Connection.php
View file @
d8dddffc
...
@@ -124,21 +124,21 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
...
@@ -124,21 +124,21 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
$driver
=
$this
->
dbh
->
getAttribute
(
PDO
::
ATTR_DRIVER_NAME
);
$driver
=
$this
->
dbh
->
getAttribute
(
PDO
::
ATTR_DRIVER_NAME
);
switch
(
$driver
)
{
switch
(
$driver
)
{
case
"mysql"
:
case
"mysql"
:
$this
->
dataDict
=
new
Doctrine_DataDict_Mysql
(
$this
);
$this
->
dataDict
=
new
Doctrine_DataDict_Mysql
(
$this
->
dbh
);
break
;
break
;
case
"sqlite"
:
case
"sqlite"
:
case
"sqlite2"
:
case
"sqlite2"
:
$this
->
dataDict
=
new
Doctrine_DataDict_Sqlite
(
$this
);
$this
->
dataDict
=
new
Doctrine_DataDict_Sqlite
(
$this
->
dbh
);
break
;
break
;
case
"pgsql"
:
case
"pgsql"
:
$this
->
dataDict
=
new
Doctrine_DataDict_Pgsql
(
$this
);
$this
->
dataDict
=
new
Doctrine_DataDict_Pgsql
(
$this
->
dbh
);
break
;
break
;
case
"oci"
:
case
"oci"
:
case
"oci8"
:
case
"oci8"
:
$this
->
dataDict
=
new
Doctrine_DataDict_Oracle
(
$this
);
$this
->
dataDict
=
new
Doctrine_DataDict_Oracle
(
$this
->
dbh
);
break
;
break
;
case
"mssql"
:
case
"mssql"
:
$this
->
dataDict
=
new
Doctrine_DataDict_Mssql
(
$this
);
$this
->
dataDict
=
new
Doctrine_DataDict_Mssql
(
$this
->
dbh
);
break
;
break
;
default
:
default
:
throw
new
Doctrine_Connection_Exception
(
"No datadict driver availible for "
.
$driver
);
throw
new
Doctrine_Connection_Exception
(
"No datadict driver availible for "
.
$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