picodb(mssql): support all MSSQL pdo drivers

For MSSQL make all connection attributes optional.
Handle differing DB connection params based on driver used.
connection can be made via ODBC DSN or server/hostname
username/password can be embedded in DSN definition or simply
omitted and single-signon will be attempted.
This commit is contained in:
Joe Nahmias
2022-07-08 09:00:04 -04:00
committed by Frédéric Guillot
parent bb7f8b4621
commit ee6cdb3565
2 changed files with 40 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ class DriverFactory
switch ($settings['driver']) {
case 'sqlite':
return new Sqlite($settings);
case 'odbc':
return new Mssql($settings);
case 'dblib':
return new Mssql($settings);
case 'mssql':
return new Mssql($settings);
case 'mysql':