Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions server/config/parameters_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3058,24 +3058,24 @@ var postgresConfigParameters = map[string]sql.SystemVariable{
},
"server_version": &Parameter{
Name: "server_version",
Default: "16.1 (Homebrew)",
Default: "15.5 (Homebrew)",
Category: "Preset Options",
ShortDesc: "Shows the server version.",
Context: ParameterContextInternal,
Type: types.NewSystemStringType("server_version"),
Source: ParameterSourceDefault,
ResetVal: "16.1 (Homebrew)",
ResetVal: "15.5 (Homebrew)",
Scope: GetPgsqlScope(PsqlScopeSession),
},
"server_version_num": &Parameter{
Name: "server_version_num",
Default: int64(160001),
Default: int64(150005),
Category: "Preset Options",
ShortDesc: "Shows the server version as an integer.",
Context: ParameterContextInternal,
Type: types.NewSystemIntType("server_version_num", 160001, 160001, false),
Type: types.NewSystemIntType("server_version_num", 150005, 150005, false),
Source: ParameterSourceDefault,
ResetVal: int64(160001),
ResetVal: int64(150005),
Scope: GetPgsqlScope(PsqlScopeSession),
},
"session_preload_libraries": &Parameter{
Expand Down
2 changes: 1 addition & 1 deletion server/connection_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (h *ConnectionHandler) handleStartup() (bool, error) {
func (h *ConnectionHandler) sendClientStartupMessages() error {
if err := h.send(&pgproto3.ParameterStatus{
Name: "server_version",
Value: "15.0",
Value: "15.5",
}); err != nil {
return err
}
Expand Down
10 changes: 10 additions & 0 deletions server/doltgres_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,16 @@ func rowToBytes(ctx *sql.Context, s sql.Schema, row sql.Row, isExecute bool) ([]
}
o[i] = buf
continue
case pgtypes.Bool.ID:
// We currently don't support a strict boolean type in GMS, so postgres booleans are represented by an INT16.
buf := make([]byte, 2)
if v.(bool) {
binary.BigEndian.PutUint16(buf, 1)
} else {
binary.BigEndian.PutUint16(buf, 0)
}
o[i] = buf
continue
}
}
}
Expand Down
Loading