Remove no-ops

This commit is contained in:
Michał Gątkowski 2022-08-09 00:40:57 +02:00
parent 65a3285057
commit 573b5622c8

View File

@ -27,12 +27,12 @@ func makePostgresDatabase(url_ *url.URL) (Database, error) {
schema := url_.Query().Get("schema") schema := url_.Query().Get("schema")
if schema == "" { if schema == "" {
db.schema = "magneticod" db.schema = "magneticod"
url_.Query().Set("search_path", "magneticod") // url_.Query().Set("search_path", "magneticod")
} else { } else {
db.schema = schema db.schema = schema
url_.Query().Set("search_path", schema) // url_.Query().Set("search_path", schema)
} }
url_.Query().Del("schema") // url_.Query().Del("schema")
var err error var err error
db.conn, err = sql.Open("pgx", url_.String()) db.conn, err = sql.Open("pgx", url_.String())