1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 18:02:25 +01:00

PdoDriver: Missing dblib in switch (#267)

Pull request #249 forgot about dblib in switch
This commit is contained in:
Petr Kučera 2017-10-05 16:12:06 +02:00 committed by David Grudl
parent 49dca48c04
commit cac571ee60

View File

@ -321,6 +321,7 @@ class PdoDriver implements Dibi\Driver, Dibi\ResultDriver
case 'odbc':
return $value->format('#m/d/Y H:i:s.u#');
case 'mssql':
case 'dblib':
case 'sqlsrv':
return 'CONVERT(DATETIME2(7), ' . $value->format("'Y-m-d H:i:s.u'") . ')';
default: