picodb(mssql): fix retrieval of DB version on MSSQL
This commit is contained in:
parent
66d55e5be0
commit
104f492301
|
|
@ -201,4 +201,15 @@ class Mssql extends Base
|
|||
return $this->getConnection()->query($this->getSqlFromPreparedStatement($sql, $values))->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get database version
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getDatabaseVersion()
|
||||
{
|
||||
return $this->getConnection()->query('SELECT @@VERSION;')->fetchColumn();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue