We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea1aa15 + 2c780c9 commit b0725eeCopy full SHA for b0725ee
server/conn.go
@@ -1185,7 +1185,14 @@ func (c *clientConn) handleExecute(body []byte) {
1185
typeOIDs[i] = getTypeInfo(ct).OID
1186
}
1187
1188
- // Don't send RowDescription here - it should come from Describe
+ // Send RowDescription if Describe wasn't called before Execute.
1189
+ // Some clients skip Describe and go straight to Execute, but still
1190
+ // need the column metadata before receiving data rows.
1191
+ if !p.described {
1192
+ if err := c.sendRowDescription(cols, colTypes); err != nil {
1193
+ return
1194
+ }
1195
1196
1197
// Send rows with the format codes from Bind
1198
rowCount := 0
0 commit comments