Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error at or near "-" #41

Closed
kwent opened this issue Aug 1, 2023 · 1 comment · Fixed by #42
Closed

syntax error at or near "-" #41

kwent opened this issue Aug 1, 2023 · 1 comment · Fixed by #42

Comments

@kwent
Copy link

kwent commented Aug 1, 2023

Hi

My username is the following format my-user.

Bootstrapping fails with:

{"name":"pg_easy_replicate","hostname":"3d3214eab576","pid":1,"level":50,"time":"2023-08-01T05:13:31.277+00:00","v":0,"msg":"PG::SyntaxError: ERROR:  syntax error at or near \"-\"\nLINE 2: grant usage on schema pger to my-user;\n                                            ^: create schema if not exists pger;\ngrant usage on schema pger to my-user;\ngrant create on schema pger to my-user;\n","version":"0.1.8"}
Unable to bootstrap: Unable to setup schema: PG::SyntaxError: ERROR:  syntax error at or near "-"

Protecting username with quotes should fix this :)

@shayonj
Copy link
Owner

shayonj commented Aug 2, 2023

0.1.9 is out now, thanks for the report.

https://github.com/shayonj/pg_easy_replicate/releases/tag/v0.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants