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
090066c7
Commit
090066c7
authored
Feb 03, 2013
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated getShowDatabasesSql() from Platforms
parent
3ba21503
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
36 deletions
+2
-36
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+0
-10
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+0
-8
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+0
-8
MySqlPlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
+1
-1
OraclePlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php
+0
-8
SQLServerPlatformTest.php
...s/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
+1
-1
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
090066c7
...
...
@@ -1972,16 +1972,6 @@ abstract class AbstractPlatform
return
$tableName
;
}
/**
* Get sql query to show a list of database.
*
* @return string
*/
public
function
getShowDatabasesSQL
()
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
/**
* Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint
* of a field declaration to be used in statements like CREATE TABLE.
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
090066c7
...
...
@@ -294,14 +294,6 @@ class MySqlPlatform extends AbstractPlatform
return
true
;
}
/**
* {@inheritDoc}
*/
public
function
getShowDatabasesSQL
()
{
return
'SHOW DATABASES'
;
}
public
function
getListTablesSQL
()
{
return
"SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'"
;
...
...
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
090066c7
...
...
@@ -377,14 +377,6 @@ class SQLServerPlatform extends AbstractPlatform
return
'INSERT INTO '
.
$quotedTableName
.
' DEFAULT VALUES'
;
}
/**
* {@inheritDoc}
*/
public
function
getShowDatabasesSQL
()
{
return
'SHOW DATABASES'
;
}
/**
* {@inheritDoc}
*/
...
...
tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
View file @
090066c7
...
...
@@ -75,7 +75,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
public
function
testGeneratesDDLSnippets
()
{
$this
->
assertEquals
(
'SHOW DATABASES'
,
$this
->
_platform
->
get
Show
DatabasesSQL
());
$this
->
assertEquals
(
'SHOW DATABASES'
,
$this
->
_platform
->
get
List
DatabasesSQL
());
$this
->
assertEquals
(
'CREATE DATABASE foobar'
,
$this
->
_platform
->
getCreateDatabaseSQL
(
'foobar'
));
$this
->
assertEquals
(
'DROP DATABASE foobar'
,
$this
->
_platform
->
getDropDatabaseSQL
(
'foobar'
));
$this
->
assertEquals
(
'DROP TABLE foobar'
,
$this
->
_platform
->
getDropTableSQL
(
'foobar'
));
...
...
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php
View file @
090066c7
...
...
@@ -116,14 +116,6 @@ class OraclePlatformTest extends AbstractPlatformTestCase
);
}
/**
* @expectedException Doctrine\DBAL\DBALException
*/
public
function
testShowDatabasesThrowsException
()
{
$this
->
assertEquals
(
'SHOW DATABASES'
,
$this
->
_platform
->
getShowDatabasesSQL
());
}
/**
* @expectedException Doctrine\DBAL\DBALException
*/
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
View file @
090066c7
...
...
@@ -67,7 +67,7 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
{
$dropDatabaseExpectation
=
'DROP DATABASE foobar'
;
$this
->
assertEquals
(
'S
HOW DATABASES'
,
$this
->
_platform
->
getShow
DatabasesSQL
());
$this
->
assertEquals
(
'S
ELECT * FROM SYS.DATABASES'
,
$this
->
_platform
->
getList
DatabasesSQL
());
$this
->
assertEquals
(
'CREATE DATABASE foobar'
,
$this
->
_platform
->
getCreateDatabaseSQL
(
'foobar'
));
$this
->
assertEquals
(
$dropDatabaseExpectation
,
$this
->
_platform
->
getDropDatabaseSQL
(
'foobar'
));
$this
->
assertEquals
(
'DROP TABLE foobar'
,
$this
->
_platform
->
getDropTableSQL
(
'foobar'
));
...
...
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