public function deflate($value, ArgumentArray $args = NULL) { if ($value instanceof DateTime) { // MySQL does not support date time string with timezone return $this->quote($value->format('Y-m-d H:i:s')); } return parent::deflate($value, $args); }
public function testAlwaysBindWithParamMarker() { $args = new ArgumentArray(); $driver = new MySQLDriver(); $driver->alwaysBindValues(true); $this->assertEquals('?', $driver->deflate(new ParamMarker('hack'), $args)); }