pgrepup icon indicating copy to clipboard operation
pgrepup copied to clipboard

Error with db name

Open vanoc opened this issue 6 years ago • 0 comments

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)

vanoc avatar Jun 25 '19 14:06 vanoc