Skip to content

Commit

Permalink
chore: write back error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrinzema committed Jun 5, 2023
1 parent 4f7f325 commit e7647ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (srv *Server) handleSimpleQuery(ctx context.Context, reader *buffer.Reader,

statement, _, columns, err := srv.parse(ctx, query)
if err != nil {
return err
return ErrorCode(writer, err)
}

if err != nil {
Expand Down

0 comments on commit e7647ad

Please sign in to comment.