Support for whitespace in Postgres connection opts #2010
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2010
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The following inputs to the
dialets.TestParsePostgres
test are not supported and thus fail:Given the documentation from PostgreSQL, shouldn't they be supported?
Is there any other possible way to support creating a Postgres connection using opts for a user containing whitespace?
IE
host=localhost port=5432 dbname=mydb connect_timeout=10 user='test user'
You can also use
postgres://pqgotest:password@localhost/pqgotest?sslmode=verify-full
@lunny is there any way to achieve this without using the URI option? I would still like to use the
keyword/value
formatPlease confirm that #2012 fix this problem.
{"user='a user' password = 'password' dbname='db' sslmode='disable'", "db", true},
will not be supported, key should not have space followed before equal.It should be
{"user='a user' password='password' dbname='db' sslmode='disable'", "db", true},