multiple query from procedure

Issue #43 resolved
Demenkov Nikolay created an issue

Hello. I have procedure witch result is like:

select name, user, type;

select surname, office, type;

select login, city, type;

I’l make

zdb::ResultSet QueryResult = prep.executeQuery();

and when I get result by

while (QueryResult.next())

i get only first select (name, user, type), please help, how to get multiple query? I don’t find any information about it.

Comments (4)

  1. Tildeslash repo owner

    Only one Result Set can be returned and handled by executeQuery (see documentation). Use the union operator to combine the selects

  2. Tildeslash repo owner

    This is not really a libzdb issue. Please investigate SQL to find a solution! F.ex. explicate name columns in the select statement, or write SQL directly in executeQuery

  3. Log in to comment