File tree 1 file changed +2
-6
lines changed
Sources/PostgresNIO/New/Connection State Machine
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,12 @@ struct SimpleQueryStateMachine {
108
108
return self . setAndFireError ( . unexpectedBackendMessage( . rowDescription( rowDescription) ) )
109
109
}
110
110
111
- // In Postgres extended queries we receive the `rowDescription` before we send the
112
- // `Bind` message. Well actually it's vice versa, but this is only true since we do
113
- // pipelining during a query.
114
- //
115
- // In the actual protocol description we receive a rowDescription before the Bind
116
-
117
111
// In Postgres extended queries we always request the response rows to be returned in
118
112
// `.binary` format.
113
+ // However, this is a simple query and almost all responses will be in text format anyway.
119
114
let columns = rowDescription. columns. map { column -> RowDescription . Column in
120
115
var column = column
116
+ // FIXME: .binary is not valid in a simple-query
121
117
column. format = . binary
122
118
return column
123
119
}
You can’t perform that action at this time.
0 commit comments