<div dir="ltr">Now I understand what you want, but it looks like something strange. Why dont just execute many statements and accumulate them in some container and after that fetch results of this statements ? For me It looks like something foreign in HDBI especially because I did not see any support of such things in native database interfaces not in Postgresql nor in SQlite.<div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/16 Gauthier Segay <span dir="ltr"><<a href="mailto:gauthier.segay@gmail.com" target="_blank">gauthier.segay@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">no the use case is to issue a bunch of disparate select statements,<br>
i.e. retrieving data from several tables in a single roundtrip.<br>
<br>
select 1,2,3<br>
<br>
select 'a', 'b'<br>
<br>
In this case, I'd like to call the API in this manner (or something better):<br>
<br>
-- statement is prepared<br>
rows1 <- fetchAllRows statement<br>
_ <- nextResults statement<br>
rows2 <- fetchAllRows statement<br>
-- continue<br>
<br>
right now, with hdbc-odbc (nextResults doesn't exist though so I don't<br>
call it) rows2 will be an empty list, I'd expect it to be[(SqlText<br>
"a"), (SqlText "b")]<br>
<br>
I assume in the case of odbc, the related C function is SQLMoreResults<br>
<br>
<a href="http://msdn.microsoft.com/en-us/library/ms714673%28v=vs.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms714673%28v=vs.85%29.aspx</a><br>
<div><div><br>
</div></div></blockquote></div><br></div></div>