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:
@@ -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'");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user