- Merge with Mssql repository bugfix

This commit is contained in:
mcndave committed 2022-06-21 15:38:06 +00:00
1 parent 724ab250ab
commit e1990e7cc0
11 files changed
+95 -87

No files matched your search

+11 -4
View File
@@ -92,16 +92,19 @@ class MsSQL implements AdapterInterface {
$parts[] = "Server={$this->server}" . ( isset($this->port) ? ",{$this->port}" : "" );
$parts[] = "Database={$this->database}";
$parts[] = "ConnectionPooling={$this->connectionPooling}";
if ( $this->app ?? false ) {
$parts[] = "APP={$this->app}";
}
if ( $this->encrypt ?? false ) {
$parts[] = "Encrypt=1";
}
else {
$parts[] = "Encrypt=0";
}
if ( $this->failoverPartner ?? false ) {
if ( $this->failoverPartner ?? false ) {
$parts[] = "Failover_Partner={$this->failoverPartner}";
}
@@ -130,7 +133,7 @@ class MsSQL implements AdapterInterface {
}
if ( $this->trustServerCertificate ?? false ) {
$parts[] = "TrustServerCertificate=1";
$parts[] = "TrustServerCertificate=yes";
}
if ( $this->WSID ?? false ) {
@@ -235,4 +238,8 @@ class MsSQL implements AdapterInterface {
return Repository\MssqlRepository::class;
}
public function queryBuilderClass() : string
{
return QueryBuilder\MssqlQueryBuilder::class;
}
}