Merge pull request #5545. Fix #5544 in master
Added the sequence name to getLastGeneratedValue() which is required for Pos
tgreSQL.
Forward #5577
Merge branch 'imel96-zf4707' into develop

* imel96-zf4707:
  Added the sequence name to getLastGeneratedValue() which is required for Pos tgreSQL.