quote Horde_Date values as well
authorChuck Hagenbuch <chuck@horde.org>
Wed, 20 May 2009 00:20:18 +0000 (20:20 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 20 May 2009 00:20:18 +0000 (20:20 -0400)
framework/Db/lib/Horde/Db/Adapter/Abstract/Schema.php

index b50ac25..0bb5d5c 100644 (file)
@@ -118,7 +118,7 @@ abstract class Horde_Db_Adapter_Abstract_Schema
               "#{quoted_string_prefix}'#{quote_string(value.to_yaml)}'"
             end
             */
-        } elseif ($value instanceof DateTime) {
+        } elseif ($value instanceof DateTime || $value instanceof Horde_Date) {
             return $this->_adapter->quoteString($type == 'integer'
                                                 ? $value->format('U')
                                                 : $value->format('Y-m-d H:i:s'));