jeroenrinzema/psql-wire

Handle incoming result-column format codes

Closed this issue · 0 comments

Incoming format codes are currently ignored and should be handled in
the future. The result-column format codes. Each must presently be
zero (text) or one (binary). These format codes should be returned
and handled by the parent function to return the proper column formats.
https://www.postgresql.org/docs/current/protocol-message-formats.html

Line: 400

psql-wire//command.go

Lines 397 to 407 in 3dbc832

srv.logger.Debug("reading result-column format codes", zap.Uint16("length", length))
for i := uint16(0); i < length; i++ {
// TODO: Handle incoming result-column format codes
//
// Incoming format codes are currently ignored and should be handled in
// the future. The result-column format codes. Each must presently be
// zero (text) or one (binary). These format codes should be returned
// and handled by the parent function to return the proper column formats.
// https://www.postgresql.org/docs/current/protocol-message-formats.html
_, err := reader.GetUint16()