Skip to content

Instantly share code, notes, and snippets.

@stan1y
Created January 29, 2017 04:24
Show Gist options
  • Select an option

  • Save stan1y/e4b62565d3540174f44231b4014da07f to your computer and use it in GitHub Desktop.

Select an option

Save stan1y/e4b62565d3540174f44231b4014da07f to your computer and use it in GitHub Desktop.

Revisions

  1. stan1y created this gist Jan 29, 2017.
    14 changes: 14 additions & 0 deletions kore pgsql minimal on mac os x
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    diff --git a/examples/pgsql/src/pgsql.c b/examples/pgsql/src/pgsql.c
    index 3553bfc..e377b7d 100644
    --- a/examples/pgsql/src/pgsql.c
    +++ b/examples/pgsql/src/pgsql.c
    @@ -126,6 +126,9 @@ request_perform_query(struct http_request *req)
    {
    struct rstate *state = req->hdlr_extra;

    + kore_pgsql_cleanup(&state->sql);
    + return HTTP_STATE_COMPLETE;
    +
    /* We want to move to read result after this. */
    req->fsm_state = REQ_STATE_DB_WAIT;