1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

MySqliDriver: fixed DateInterval encoding (#371)

This commit is contained in:
LHavlicek
2020-10-08 14:29:15 +02:00
committed by David Grudl
parent 3b057c2e35
commit a95b409231

View File

@@ -317,7 +317,7 @@ class MySqliDriver implements Dibi\Driver
if ($value->y || $value->m || $value->d) {
throw new Dibi\NotSupportedException('Only time interval is supported.');
}
return $value->format('%r%H:%I:%S.%f');
return $value->format("'%r%H:%I:%S.%f'");
}