Code

frontend, sysdb: Correctly handle empty queries.
authorSebastian Harl <sh@tokkee.org>
Tue, 16 Sep 2014 17:36:23 +0000 (19:36 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 16 Sep 2014 17:36:23 +0000 (19:36 +0200)
commita5673017588c548a6a8e4fcb1ec44ffc27816d06
tree90fed16494592dbf16c376a90b01a72d20f71990
parentccfc35aa9bef471b1cb76c33b3aca2b4874f982b
frontend, sysdb: Correctly handle empty queries.

Let the frontend send back a DATA message even on empty queries to make sure
the client sees the expected reply.

Let sysdb handle empty replies correctly and also not print any errors on
empty replies (successful command not returning any data).
src/frontend/connection.c
src/frontend/query.c
src/include/frontend/proto.h
src/tools/sysdb/command.c