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
9975da98
Commit
9975da98
authored
Jan 01, 2014
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[DBAL-756] Add new method AbstractPlatform#getVendor()."
This reverts commit
5a46f577
.
parent
b5158740
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1 addition
and
92 deletions
+1
-92
UPGRADE.md
UPGRADE.md
+0
-10
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+0
-7
DB2Platform.php
lib/Doctrine/DBAL/Platforms/DB2Platform.php
+0
-8
DrizzlePlatform.php
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
+0
-8
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+0
-8
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+0
-8
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+0
-8
SQLAnywherePlatform.php
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
+0
-8
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+0
-8
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+0
-8
MockPlatform.php
tests/Doctrine/Tests/DBAL/Mocks/MockPlatform.php
+0
-6
DatabasePlatformMock.php
tests/Doctrine/Tests/Mocks/DatabasePlatformMock.php
+1
-5
No files found.
UPGRADE.md
View file @
9975da98
# Upgrade to 2.5
## New abstract method `getVendor` on `AbstractPlatform`
Because we have been getting more and more version specific platforms
it is necessary to detect platforms based on the vendor, not on their version names.
For this a new method
`abstract public function getVendor()`
was introduced on
the
`AbstractPlatform`
.
If you have a custom platform that extends from
`AbstractPlatform`
you need to provide
this method as of version 2.5 of DBAL.
## datetime Type uses date_create() as fallback
Before 2.5 the DateTime type always required a specific format, defined in
...
...
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
9975da98
...
...
@@ -337,13 +337,6 @@ abstract class AbstractPlatform
*/
abstract
public
function
getName
();
/**
* Gets the name of the vendor, independent of version.
*
* @return string
*/
abstract
public
function
getVendor
();
/**
* Registers a doctrine type to be used in conjunction with a column type of this platform.
*
...
...
lib/Doctrine/DBAL/Platforms/DB2Platform.php
View file @
9975da98
...
...
@@ -107,14 +107,6 @@ class DB2Platform extends AbstractPlatform
return
'db2'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'db2'
;
}
/**
* {@inheritDoc}
*/
...
...
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
View file @
9975da98
...
...
@@ -40,14 +40,6 @@ class DrizzlePlatform extends AbstractPlatform
return
'drizzle'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'drizzle'
;
}
/**
* {@inheritDoc}
*/
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
9975da98
...
...
@@ -795,14 +795,6 @@ class MySqlPlatform extends AbstractPlatform
return
'mysql'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'mysql'
;
}
/**
* {@inheritDoc}
*/
...
...
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
9975da98
...
...
@@ -810,14 +810,6 @@ LEFT JOIN user_cons_columns r_cols
return
'oracle'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'oracle'
;
}
/**
* {@inheritDoc}
*/
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
9975da98
...
...
@@ -874,14 +874,6 @@ class PostgreSqlPlatform extends AbstractPlatform
return
'postgresql'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'postgresql'
;
}
/**
* {@inheritDoc}
*
...
...
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
View file @
9975da98
...
...
@@ -1005,14 +1005,6 @@ class SQLAnywherePlatform extends AbstractPlatform
return
'sqlanywhere'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'sqlanywhere'
;
}
/**
* Obtain DBMS specific SQL code portion needed to set a primary key
* declaration to be used in statements like ALTER TABLE.
...
...
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
9975da98
...
...
@@ -1286,14 +1286,6 @@ class SQLServerPlatform extends AbstractPlatform
return
'mssql'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'sqlserver'
;
}
/**
* {@inheritDoc}
*/
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
9975da98
...
...
@@ -486,14 +486,6 @@ class SqlitePlatform extends AbstractPlatform
return
'sqlite'
;
}
/**
* {@inheritDoc}
*/
public
function
getVendor
()
{
return
'sqlite'
;
}
/**
* {@inheritDoc}
*/
...
...
tests/Doctrine/Tests/DBAL/Mocks/MockPlatform.php
View file @
9975da98
...
...
@@ -56,12 +56,6 @@ class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
{
return
'mock'
;
}
public
function
getVendor
()
{
return
'mock'
;
}
protected
function
initializeDoctrineTypeMappings
()
{
}
protected
function
getVarcharTypeDeclarationSQLSnippet
(
$length
,
$fixed
)
...
...
tests/Doctrine/Tests/Mocks/DatabasePlatformMock.php
View file @
9975da98
...
...
@@ -72,10 +72,6 @@ class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
{
return
'mock'
;
}
public
function
getVendor
()
{
return
'mock'
;
}
protected
function
initializeDoctrineTypeMappings
()
{
}
protected
function
getVarcharTypeDeclarationSQLSnippet
(
$length
,
$fixed
)
...
...
@@ -89,4 +85,4 @@ class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
}
}
\ No newline at end of file
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