public function addColumnOptions($sql, $options)
{
/* 'autoincrement' is not handled here - it varies too much between
- * DBs. Do autoincrement specific handling in the driver. */
+ * DBs. Do autoincrement-specific handling in the driver. */
+
if (isset($options['null']) && $options['null'] === false) {
$sql .= ' NOT NULL';
}
if (!$column)
return parent::quote($value, $column);
- if (is_string($value) && ($column->getType() == 'binary')) {
+ if (is_string($value) && ($column->getType() == 'binary') && method_exists($column, 'stringToBinary')) {
/*@TODO test blobs/bytea fields with postgres/pdo and figure out how
this should work */
return $this->quotedStringPrefix() . "'" . $column->stringToBinary($value) . "'";