EllisLab/CodeIgniter — Issue #736: add_column error (bug?)
Author: gracix
Created: 2011-12-03 01:34:45+00:00
State: open

CI 2.0.3
DB Postgres 8.4
PHP 5.3.8

Now, i wrote this code

$fields = array(
'preferences' => array('type' => 'TEXT')
);
$this->dbforge-＞add_column('table1', $fields);

After, I get error

ALTER TABLE "table1" ADD Array NOT NULL

Filename: [ci-dir]\system\database\DB_driver.php

Line Number: 330

In first line, array is not expanded, and output "array".
Is it Bug?