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

Support for passwords with spaces #34

Closed
ewollesen opened this issue Mar 30, 2020 · 2 comments
Closed

Support for passwords with spaces #34

ewollesen opened this issue Mar 30, 2020 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@ewollesen
Copy link

At present jet doesn't support passwords with spaces in them.

I was able to workaround the issue by doing a sql-injection like attack:

	err := postgres.Generate("./gen/db", postgres.DBConnection{
		Host:     "localhost",
		Port:     5432,
		User:     "dbuser",
		SslMode:  "disable",
		Password: "null password='password with spaces'",
		DBName:   "mydb",
	})
@go-jet
Copy link
Owner

go-jet commented Mar 31, 2020

Hi @ewollesen. Thanks for the reporting the issue.
Regarding the workaround, this should also work:

Password: "'password with spaces'",

@go-jet go-jet added the bug Something isn't working label Apr 13, 2020
@go-jet go-jet mentioned this issue Oct 25, 2021
@go-jet go-jet added this to the Version 2.6.0 milestone Oct 25, 2021
@go-jet
Copy link
Owner

go-jet commented Oct 25, 2021

Fixed with v2.6.0 release.

@go-jet go-jet closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants