From a23ce0ad2fb0fb63d9f4d5cd7a8c63204d58bd66 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 15 Jun 2010 12:49:27 +0200 Subject: [PATCH] Fix bug #3487: Mix of result sets .. In filter virt_db, when result sets are replaced we pick an existing backend and check for result set naming and number of result sets on this backend. --- src/filter_virt_db.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filter_virt_db.cpp b/src/filter_virt_db.cpp index 56ba946..e8b30f5 100644 --- a/src/filter_virt_db.cpp +++ b/src/filter_virt_db.cpp @@ -293,7 +293,9 @@ void yf::VirtualDB::Frontend::search(mp::Package &package, Z_APDU *apdu_req) for (; map_it != m_backend_list.end(); map_it++) { BackendPtr tmp = *map_it; - if (tmp->m_frontend_databases == databases) + if (tmp->m_frontend_databases == databases && + (tmp->m_named_result_sets || + tmp->m_number_of_sets == 0)) break; } if (map_it != m_backend_list.end()) -- 1.7.10.4