Open tkonop opened 5 years ago
@tkonop Thanks for your contribution. We need unit test to demonstrate the bug and cover the changes.
This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at https://github.com/laminas/laminas-db/issues/8.
This repository has been moved to laminas/laminas-db. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
git rebase -i origin/{branch}
)
Postgres sequence can use other schema than public. In this case NEXTVAL and CURRVAL should include Schema name like NEXTVAL("schema"."sequence_name"). In standard approach result of SequenceFeature class was NEXTVAL("schema.sequence_name") which is inproper behavior. I added checking, if the $sequenceName is instance of TableIdentifier. In this case NEXTVAL and CURRVALL is modified.
Provide a narrative description of what you are trying to accomplish:
[x] Are you fixing a bug?
master
branch, and submit against that branch.CHANGELOG.md
entry for the fix.[ ] Are you creating a new feature?
develop
branch, and submit against that branch.CHANGELOG.md
entry for the new feature.[ ] Is this related to quality assurance?
[ ] Is this related to documentation?