Closed msavic-dev22 closed 1 month ago
The code example in Pgx section is outdated. Currently there is this code:
config, err := pgx.ParseConfig("postgres://postgres:@localhost:5432/test?sslmode=disable") if err != nil { panic(err) } config.PreferSimpleProtocol = true
but PreferSimpleProtocol does not exists. Instead it should be:
config, err := pgx.ParseConfig("postgres://postgres:@localhost:5432/test?sslmode=disable") if err != nil { panic(err) } config.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
@vmihailenco It looks like the link to contribute to the docs is broken. There is no way for us to make PR to update documentation
Thanks, the documentation will be updated on the next deploy.
The code example in Pgx section is outdated. Currently there is this code:
but PreferSimpleProtocol does not exists. Instead it should be: