What steps will reproduce the problem?
1. Use 'pgsql' and invoke 'insert()' method of the Model
What is the expected output? What do you see instead?
I see the error - 'SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "id"
does not exist'
What version of the product are you using? On what operating system?
DooPHP 1.5, PHP 5.5.6, nginx 1.5.7, PostgreSQL 9.3
Please provide any additional information below.
Error resolved by changing argument.
File 'DooSqlMagic.php' line 2082
from:
return $this->pdo->lastInsertId($model->_primarykey);
to:
return $this->pdo->lastInsertId($model->_table.'_'.$model->_primarykey.'_seq');
The sequence name must be like 'table_column_seq'.
Original issue reported on code.google.com by evgeney....@gmail.com on 8 Jan 2014 at 1:41
Original issue reported on code.google.com by
evgeney....@gmail.com
on 8 Jan 2014 at 1:41