- Working on revamping Ulmus bases classes

This commit is contained in:
mcndave committed 2026-07-13 19:41:44 +00:00
1 parent 13b7cf06f1
commit 1dcf32e0da
12 files changed
+303 -52

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@
namespace Ulmus\Adapter;
use Ulmus\Common\PdoObject;
use Ulmus\Pdo;
use Ulmus\Exception\AdapterConfigurationException;
@@ -83,10 +83,10 @@ class MsSQL implements AdapterInterface, MigrateInterface, SqlAdapterInterface {
}
}
public function connect() : PdoObject
public function connect() : Pdo
{
try {
$pdo = new PdoObject($this->buildDataSourceName(), $this->username, $this->password);
$pdo = new Pdo\Mssql($this->buildDataSourceName(), $this->username, $this->password);
$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$pdo->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
$pdo->setAttribute(\PDO::SQLSRV_ATTR_ENCODING, \PDO::SQLSRV_ENCODING_UTF8);