We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6bbb929 + dabace0 commit 84db100Copy full SHA for 84db100
1 file changed
server/conn.go
@@ -1190,7 +1190,9 @@ func (c *clientConn) handleExecute(body []byte) {
1190
// Send RowDescription if Describe wasn't called before Execute.
1191
// Some clients skip Describe and go straight to Execute, but still
1192
// need the column metadata before receiving data rows.
1193
- if !p.described {
+ // Skip if there are no columns - queries that return 0 columns (like
1194
+ // DDL accidentally routed here) don't need RowDescription.
1195
+ if !p.described && len(cols) > 0 {
1196
if err := c.sendRowDescription(cols, colTypes); err != nil {
1197
return
1198
}
0 commit comments