sqlx
sqlx copied to clipboard
`PgConnectOptions.options` are not URL encoded
https://github.com/launchbadge/sqlx/blob/728717f032675a1dbf0fc29246d8c047cbb3933b/sqlx-core/src/postgres/options/mod.rs#L431
Test case:
let pg_connect_opts = PgConnectOptions::default()
.database(db_name)
.options([("default_transaction_isolation", "repeatable read")]);
Connecting with these options will given an error that "repeatable" is not a valid isolation level.
I think the solution is to URL encode options.