Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion postgresql/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,9 @@ func fingerprintCapabilities(db *sql.DB) (*semver.Version, error) {

// PostgreSQL 9.2.21 on x86_64-apple-darwin16.5.0, compiled by Apple LLVM version 8.1.0 (clang-802.0.42), 64-bit
// PostgreSQL 9.6.7, compiled by Visual C++ build 1800, 64-bit
// PostgreSQL 13.14_TDE_[...] (Ubuntu [...]) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu [...]) [...], 64-bit
fields := strings.FieldsFunc(pgVersion, func(c rune) bool {
return unicode.IsSpace(c) || c == ','
return unicode.IsSpace(c) || c == ',' || c == '_'
})
if len(fields) < 2 {
return nil, fmt.Errorf("error determining the server version: %q", pgVersion)
Expand Down