mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
Merge branch 'master' into batch-translate
This commit is contained in:
commit
5bc5991bd7
2 changed files with 10 additions and 0 deletions
|
|
@ -394,6 +394,14 @@ func (s *Server) handleStandard(ctx context.Context, proto Protocol, conn net.Co
|
|||
return errors.Wrap(err, "failed to send query error to client")
|
||||
}
|
||||
} else {
|
||||
if !qwriter.wroteHeaders {
|
||||
// The handler did not write headers.
|
||||
// Write back an empty set of headers.
|
||||
err = qwriter.WriteHeader()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "sending empty column headers")
|
||||
}
|
||||
}
|
||||
// The query completed normally.
|
||||
// Notify the client of completion.
|
||||
msg, err = encoder.CommandComplete(qwriter.tag)
|
||||
|
|
|
|||
|
|
@ -89,6 +89,8 @@ func newRouter() *router {
|
|||
selectRouter.addRoute("select fld1, count(fld1) from tbl where fld2=1 group by fld1", handlerSelectGroupBy{})
|
||||
|
||||
selectRouter.addRoute("select count(*) from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi", handlerSelectJoin{})
|
||||
selectRouter.addRoute("select count(*) from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi where fld1=1", handlerSelectJoin{})
|
||||
selectRouter.addRoute("select count(*) from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi where fld1=1 and fld2=2", handlerSelectJoin{})
|
||||
selectRouter.addRoute("select _id from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi", handlerSelectJoin{})
|
||||
selectRouter.addRoute("select _id from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi where fld1=1", handlerSelectJoin{})
|
||||
selectRouter.addRoute("select _id from tbl1 INNER JOIN tbl2 ON tbl1._id = tbl2.bsi where fld1=1 and fld2=2", handlerSelectJoin{})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue