Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Fix tests for MSSQL #246

Merged
merged 4 commits into from
Sep 9, 2020
Merged

Fix tests for MSSQL #246

merged 4 commits into from
Sep 9, 2020

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Sep 9, 2020

No description provided.

@@ -542,10 +538,13 @@ public function execute(object $connection = null)
$statement->execute();
} catch (\PDOException $e) {
$new = (new ExecuteException('DSQL got Exception when executing this query', $e->errorInfo[1]))
->addMoreInfo('error', $e->errorInfo[2])
->addMoreInfo('error', $e->errorInfo[2] ?? 'n/a (' . $e->errorInfo[0] . ')')
Copy link
Member Author

Choose a reason for hiding this comment

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

errorInfo[2] is not set with MSSQL PDO driver

@mvorisek mvorisek changed the title Fix bindParam in Expression (at least for for MSSQL) Fix tests for MSSQL Sep 9, 2020
} else {
$bind = $statement->bindParam($key, $statement->boundValues[$key], $type);
}
$bind = $statement->bindParam($key, $statement->boundValues[$key], $type);
Copy link
Member Author

@mvorisek mvorisek Sep 9, 2020

Choose a reason for hiding this comment

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

Copy link
Collaborator

@georgehristov georgehristov left a comment

Choose a reason for hiding this comment

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

LGTM

@mvorisek mvorisek merged commit 526b6da into develop Sep 9, 2020
@mvorisek mvorisek deleted the cross_vendor_fixes branch September 9, 2020 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants