Skip to content

Error with db name #17

@vanoc

Description

@vanoc

If db name contains "-", we get an error

To fix this, edit
vim pgrepup/lib/python2.7/site-packages/pgrepup/helpers/replication.py

find
c.execute('GRANT CREATE ON DATABASE ' + db + ' TO ' + user)
and replace it with
c.execute('GRANT CREATE ON DATABASE ' + '"' + db + '"' + ' TO ' + user)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions