kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 8e0ab8cc61646cf973e526996d02958214b6d74b
parent b2f31fbcdbc74ebc100e553563f8d8812995b98b
Author: Joris Vink <joris@coders.se>
Date:   Thu,  3 Jul 2014 22:58:04 +0200

Check for pg version >= 90200 before using PGRES_SINGLE_TUPLE

Diffstat:
src/pgsql.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/pgsql.c b/src/pgsql.c @@ -332,7 +332,9 @@ pgsql_read_result(struct http_request *req, int i, struct pgsql_conn *conn) req->pgsql[i]->state = KORE_PGSQL_STATE_DONE; break; case PGRES_TUPLES_OK: +#if PG_VERSION_NUM >= 90200 case PGRES_SINGLE_TUPLE: +#endif req->pgsql[i]->state = KORE_PGSQL_STATE_RESULT; break; case PGRES_EMPTY_QUERY: