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
acec85a4
Commit
acec85a4
authored
May 30, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixed hardcoded database name.
parent
0b09e501
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+1
-1
AbstractSchemaManager.php
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+0
-1
MySqlSchemaManager.php
lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
+1
-1
No files found.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
acec85a4
...
...
@@ -190,7 +190,7 @@ class MySqlPlatform extends AbstractPlatform
$sql
=
"SELECT column_name, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME FROM information_schema.key_column_usage WHERE table_name = '"
.
$table
.
"'"
;
if
(
!
is_null
(
$database
))
{
$sql
.=
" AND table_schema = '
doctrine_tests
'"
;
$sql
.=
" AND table_schema = '
$database
'"
;
}
$sql
.=
" AND REFERENCED_COLUMN_NAME is not NULL"
;
...
...
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
View file @
acec85a4
...
...
@@ -221,7 +221,6 @@ abstract class AbstractSchemaManager
$database
=
$this
->
_conn
->
getDatabase
();
}
$sql
=
$this
->
_platform
->
getListTableForeignKeysSql
(
$table
,
$database
);
$tableForeignKeys
=
$this
->
_conn
->
fetchAll
(
$sql
);
return
$this
->
_getPortableTableForeignKeysList
(
$tableForeignKeys
);
...
...
lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
View file @
acec85a4
...
...
@@ -16,7 +16,7 @@
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.
phpdoctrine
.org>.
* <http://www.
doctrine-project
.org>.
*/
namespace
Doctrine\DBAL\Schema
;
...
...
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