Commit e7853e89 by irul

bug fix: Illegal string offset 'server'

1 parent 42b56a37
...@@ -328,8 +328,7 @@ class CI_DB_postgre_driver extends CI_DB { ...@@ -328,8 +328,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/ */
function insert_id() function insert_id()
{ {
$v = $this->_version(); $v = pg_version($this->conn_id); $v = isset($v['server']) ? $v['server'] : 0;
$v = $v['server'];
$table = func_num_args() > 0 ? func_get_arg(0) : NULL; $table = func_num_args() > 0 ? func_get_arg(0) : NULL;
$column = func_num_args() > 1 ? func_get_arg(1) : NULL; $column = func_num_args() > 1 ? func_get_arg(1) : NULL;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!