<div dir="ltr"><div dir="ltr">We've narrowed this down to a stored procedure that sometimes returns more than one result set, and when that happens the first result set is empty. It appears that db_mysql is setting the client flags to accept multiple result sets but the only processes the first one.</div><div dir="ltr"><br></div><div dir="ltr">Here's how my developer phrased it:</div><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We have a store procedure that queries two tables and returns two result sets. Something like “select * from table1 where condition=‘x’; select * from table2 where condition=‘y’;” we need to be able to iterate through both result sets. Since it’s a third party stored procedure we can’t modify the way it works or make two separate queries. Currently the avp_db_query method is returning “query returned no results” but it’s ignoring the second result set.<br></blockquote><div><br></div><div>What's needed to make db_mysql handle multiple result sets? It looks like they would need to be compiled into a single result set of zero or more rows before handing off to the DB API.</div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Regards,<div><br></div><div><p style="font-family:helvetica,arial,sans-serif;font-size:12px;margin:0px;padding:0px 0px 20px;color:rgb(0,0,0)"><strong>Calvin Ellison</strong><br>Senior Voice Operations Engineer<br><a href="mailto:calvin.ellison@voxox.com" style="text-decoration:none;color:rgb(14,123,174)" target="_blank">calvin.ellison@voxox.com</a></p></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div>
</blockquote></div></div>
</blockquote></div></div>