Skip to content

Commit

Permalink
Ensure a connection exists before getting its version.
Browse files Browse the repository at this point in the history
Refs #8489
  • Loading branch information
markstory committed Mar 24, 2016
1 parent 8d61871 commit a98b5dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/Dialect/SqlserverDialectTrait.php
Expand Up @@ -82,6 +82,7 @@ protected function _selectQueryTranslator($query)
*/
public function _version()
{
$this->connect();
return $this->_connection->getAttribute(PDO::ATTR_SERVER_VERSION);
}

Expand Down

0 comments on commit a98b5dc

Please sign in to comment.