Merge branch 'hotfix/6307'

Close #6307
Fix a sequence name with double quotes for PostgreSQL to preserve capital characters
Merge branch 'hotfix/6222' into develop

Forward port #6222