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
669aed8f
Commit
669aed8f
authored
Jul 11, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug introduced in
e8fa2e1f
, fixing DDC-625. Fixed bug in testsuite
parent
5ba5a66d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+2
-2
AllTests.php
tests/Doctrine/Tests/DBAL/Functional/AllTests.php
+5
-5
No files found.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
669aed8f
...
@@ -128,8 +128,8 @@ class MySqlPlatform extends AbstractPlatform
...
@@ -128,8 +128,8 @@ class MySqlPlatform extends AbstractPlatform
" c.constraint_name = k.constraint_name AND "
.
" c.constraint_name = k.constraint_name AND "
.
" c.table_name = '
$table
' */ WHERE k.table_name = '
$table
'"
;
" c.table_name = '
$table
' */ WHERE k.table_name = '
$table
'"
;
if
(
!
is_null
(
$database
)
)
{
if
(
$database
)
{
$sql
.=
" AND
c.table_schema = '
$database
' AND k.constraint_schema = '"
.
$database
.
"
'"
;
$sql
.=
" AND
k.table_schema = '
$database
' AND c.constraint_schema = '
$database
'"
;
}
}
$sql
.=
" AND `REFERENCED_COLUMN_NAME` is not NULL"
;
$sql
.=
" AND `REFERENCED_COLUMN_NAME` is not NULL"
;
...
...
tests/Doctrine/Tests/DBAL/Functional/AllTests.php
View file @
669aed8f
...
@@ -25,15 +25,15 @@ class AllTests
...
@@ -25,15 +25,15 @@ class AllTests
$conn
=
TestUtil
::
getConnection
();
$conn
=
TestUtil
::
getConnection
();
$sm
=
$conn
->
getSchemaManager
();
$sm
=
$conn
->
getSchemaManager
();
if
(
$sm
instanceof
Doctrine\DBAL\Schema\SqliteSchemaManager
)
{
if
(
$sm
instanceof
\
Doctrine\DBAL\Schema\SqliteSchemaManager
)
{
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\SqliteSchemaManagerTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\SqliteSchemaManagerTest'
);
}
else
if
(
$sm
instanceof
Doctrine\DBAL\Schema\MySqlSchemaManager
)
{
}
else
if
(
$sm
instanceof
\
Doctrine\DBAL\Schema\MySqlSchemaManager
)
{
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\MySqlSchemaManagerTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\MySqlSchemaManagerTest'
);
}
else
if
(
$sm
instanceof
Doctrine\DBAL\Schema\PostgreSqlSchemaManager
)
{
}
else
if
(
$sm
instanceof
\
Doctrine\DBAL\Schema\PostgreSqlSchemaManager
)
{
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\PostgreSqlSchemaManagerTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\PostgreSqlSchemaManagerTest'
);
}
else
if
(
$sm
instanceof
Doctrine\DBAL\Schema\OracleSchemaManager
)
{
}
else
if
(
$sm
instanceof
\
Doctrine\DBAL\Schema\OracleSchemaManager
)
{
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\OracleSchemaManagerTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\OracleSchemaManagerTest'
);
}
else
if
(
$sm
instanceof
Doctrine\DBAL\Schema\DB2SchemaManager
)
{
}
else
if
(
$sm
instanceof
\
Doctrine\DBAL\Schema\DB2SchemaManager
)
{
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\Db2SchemaManagerTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\Schema\Db2SchemaManagerTest'
);
}
}
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\ConnectionTest'
);
$suite
->
addTestSuite
(
'Doctrine\Tests\DBAL\Functional\ConnectionTest'
);
...
...
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