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
72a9fec5
Commit
72a9fec5
authored
Dec 25, 2011
by
Kim Hemsø Rasmussen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added supportsViews() to platforms.
parent
6a02f3d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+10
-0
DrizzlePlatform.php
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
+5
-0
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+4
-0
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
72a9fec5
...
...
@@ -2377,6 +2377,16 @@ abstract class AbstractPlatform
return
""
;
}
/**
* Does this platform views ?
*
* @return boolean
*/
public
function
supportsViews
()
{
return
true
;
}
/**
* Gets the format string, as accepted by the date() function, that describes
* the format of a stored datetime value of this platform.
...
...
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
View file @
72a9fec5
...
...
@@ -199,6 +199,11 @@ class DrizzlePlatform extends AbstractPlatform
return
true
;
}
public
function
supportsViews
()
{
return
false
;
}
public
function
getDropIndexSQL
(
$index
,
$table
=
null
)
{
if
(
$index
instanceof
Index
)
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
72a9fec5
...
...
@@ -420,6 +420,10 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
public
function
testCreateAndListViews
()
{
if
(
!
$this
->
_sm
->
getDatabasePlatform
()
->
supportsViews
())
{
$this
->
markTestSkipped
(
'Views is not supported by this platform.'
);
}
$this
->
createTestTable
(
'view_test_table'
);
$name
=
"doctrine_test_view"
;
...
...
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