-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hard dependency on PDO #2958
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
aa91620
Added visibility for interface methods as required by the coding stan…
morozov 6febd84
Removed HydratorMockStatement since it's not used anywhere since 2.0
morozov 8e55b57
Introduced new constants
morozov 0e0aa03
Replaced PDO::FETCH_* and PDO::PARAM_* constants
morozov c570ed1
Replaced PDO::CASE_* constants
morozov ba577ac
Reworked tests to avoid hard dependency on PDO
morozov 3e6d066
Added conversion of DBAL constants to PDO ones for PDOStatement
morozov af6a056
Expressed PARAM_*_ARRAY through other constants to eliminate the depe…
morozov 8d18a7e
Updated UPGRADE.md for 2.x
morozov 4a3a040
[BC] Removed support for PDO::PARAM_INPUT_OUTPUT in Statement::bindPa…
morozov 052114f
[BC] Replaced extension of \PDOStatement with a composition to avoid …
morozov 696490d
[BC] Replaced PDO constants with values
morozov 83a6c1b
Updated UPGRADE.md for 3.x
morozov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
], | ||
"require": { | ||
"php": "^7.2", | ||
"ext-pdo": "*", | ||
"doctrine/common": "^2.7.1" | ||
}, | ||
"require-dev": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Doctrine\DBAL; | ||
|
||
/** | ||
* Contains portable column case conversions. | ||
*/ | ||
class ColumnCase | ||
{ | ||
/** | ||
* Convert column names to upper case. | ||
* | ||
* @see \PDO::CASE_UPPER | ||
*/ | ||
public const UPPER = 1; | ||
|
||
/** | ||
* Convert column names to lower case. | ||
* | ||
* @see \PDO::CASE_LOWER | ||
*/ | ||
public const LOWER = 2; | ||
|
||
/** | ||
* This class cannot be instantiated. | ||
*/ | ||
final private function __construct() | ||
{ | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For unaware readers: this is the big win 👍