Skip to content
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

[WIP] [DBAL-216] Add Sqlsrv as driver #110

Merged
merged 2 commits into from
Feb 6, 2012
Merged

[WIP] [DBAL-216] Add Sqlsrv as driver #110

merged 2 commits into from
Feb 6, 2012

Conversation

beberlei
Copy link
Member

@beberlei beberlei commented Feb 6, 2012

ext/sqlsrv has some benefits over using pdo_sqlsrv such as advanced Azure Platform featuers.

{
public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
{
return new Connection(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems wrong. The class does not exist

This is necessary because pdo_sqlsrv still has some little bugs that
prevent it from being used in all use-cases. Additionally only sqlsrv
can make use of the Azure federations features.
beberlei added a commit that referenced this pull request Feb 6, 2012
[DBAL-216] Add Sqlsrv as driver
@beberlei beberlei merged commit 6fa2b94 into master Feb 6, 2012
$fetchStyle = ($fetchStyle)?:$this->defaultFetchStyle;
if (isset(self::$fetchMap[$fetchStyle])) {
return sqlsrv_fetch_array($this->stmt, self::$fetchMap[$fetchStyle]);
} else if ($fetchStyle == PDO::FETCH_OBJ || $fetchStyle == PDO::FETCH_CLASS) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need else here and below as each if block returns

@Ocramius Ocramius deleted the DBAL-216 branch February 26, 2014 22:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants