kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit f6f37437dac824a5fc931658d12fa1f399023d60
parent ee52746a7a92699d08b0acfa3faeadd98c461149
Author: Joris Vink <joris@coders.se>
Date:   Fri, 19 Sep 2014 12:51:37 +0200

In pgsql_simple_state_result() be sure to progress the sql state.

Drop back into waiting after our result so we can properly read out
the completed state.

Diffstat:
src/pgsql.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pgsql.c b/src/pgsql.c @@ -511,7 +511,9 @@ pgsql_simple_state_result(struct http_request *req) if (simple->result) simple->result(req, simple); - req->fsm_state = PGSQL_SIMPLE_STATE_DONE; + kore_pgsql_continue(req, &simple->sql); + req->fsm_state = PGSQL_SIMPLE_STATE_WAIT; + return (HTTP_STATE_CONTINUE); }