On /includes/database/pgsql/schema.inc start from line 336
if (isset($spec['initial'])) {
$this->connection->update($table)
->fields(array($field, $spec['initial']))
->execute();
}
Should be replace with
if (isset($spec['initial'])) {
$this->connection->update($table)
->fields(array($field => $spec['initial'])) // Must be array(index => value)
->execute();
}

Comments

chalet16’s picture

Status: Active » Needs review
StatusFileSize
new815 bytes

Patch

chx’s picture

Component: database system » postgresql database
Status: Needs review » Reviewed & tested by the community

Looks good to me...

chalet16’s picture

StatusFileSize
new57.02 KB

Test passed screenshot

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -PostgreSQL

Automatically closed -- issue fixed for 2 weeks with no activity.