From 712b255c55155f11cc1e0106b7115ec2df2cea8a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 23 Jan 2013 08:56:26 +0100 Subject: [PATCH] Working fetch more, but settings/tests needs updating --- src/client.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/client.c b/src/client.c index 5f05633..d3265c3 100644 --- a/src/client.c +++ b/src/client.c @@ -764,17 +764,28 @@ static const char *get_strategy_plus_sort(struct client *l, const char *field) int client_fetch_more(struct client *cl) { + struct session_database *sdb = client_get_database(cl); + const char *str; int extra = cl->hits - cl->record_offset; + if (extra > 0) { ZOOM_resultset set = cl->resultset; + struct connection *co = client_get_connection(cl); int max_extra = 10; if (extra > max_extra) extra = max_extra; + str = session_setting_oneval(sdb, PZ_REQUESTSYNTAX); + ZOOM_resultset_option_set(set, "preferredRecordSyntax", str); + str = session_setting_oneval(sdb, PZ_ELEMENTS); + if (str && *str) + ZOOM_resultset_option_set(set, "elementSetName", str); + ZOOM_resultset_records(set, 0, cl->record_offset, extra); client_set_state(cl, Client_Working); + connection_continue(co); return 1; } return 0; -- 1.7.10.4