Trying to communicate with a postgres database with go, preparing the statement like this:
var stmt *sql.Stmt var err error stmt, err = db.Prepare(selectStateme
Notice, please:
This even occurs, if you have indicated a sslmode=disable, but have empty other param. For example dbname=
sslmode=disable
dbname=
For example, connection string:
user=test password=test dbname=sslmode=disable will also issue this error, because dbname is empty.
user=test password=test dbname=sslmode=disable