-
-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
We encountered problem, during upgrade to newest version.
INSERTs suddenly stopped working., after some digging, we found following:
- INSERTs on their own work correctly
- problem is when trying to get lastInsertId()
Nette\Database\Selection::764
$primaryKey = $this->context->getInsertId(
!empty($primarySequenceName)
? $this->context->getConnection()->getSupplementalDriver()->delimite($primarySequenceName)
: $primarySequenceName
);- This throws following error:
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "web.product_id_seq" does not exist - When I modified delimite function to work same way as delimiteFQN function in PgSqlDriver, all problems disappeared.
Solution
In identifier names should'nt be any . characters. Move delimiteFQN logic into delimite function.
When asking for delimition of not FQN identifier, it won't cause any problem.
Metadata
Metadata
Assignees
Labels
No labels