Thanks Jeff. Andy emailed me but didn't copy the list, so you may want to coordinate with him.<br><br>Another note- at the very bottom of <a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-field-count.html">http://dev.mysql.com/doc/refman/5.0/en/mysql-field-count.html</a> it says another acceptable solution is to call mysql_error() to check for an error, instead of calling mysql_field_count(). Maybe that method has less overhead? I'll let you guys decide. <br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 2:47 PM, Jeff Baumes <span dir="ltr"><<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the patch. It looks reasonable to me. I can put it in my<br>
queue to push into VTK.<br>
<br>
BTW, the VTK_MYSQL_TEST_URL is a url to a user/database that the user<br>
has write access to. The URL format for MySQL databases is of the<br>
form: 'mysql://'[[username[':'password]'@']hostname[':'port]]'/'[dbname]<br>
<br>
Jeff<br>
<div><div></div><div class="h5"><br>
On Wed, Jun 2, 2010 at 2:29 PM, pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br>
> Hi,<br>
><br>
> My application was generating an sql statement that contained a subquery<br>
> error (the third one listed on<br>
> <a href="http://dev.mysql.com/doc/refman/5.0/en/subquery-errors.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/subquery-errors.html</a>.) Executing the<br>
> statement at the mysql command line revealed the error, but<br>
> vtkMySQLQuery::Execute() did not catch the error, and subsequently crashed<br>
> in vtkMySQLQuery::NextRow().<br>
><br>
> The mysql doc explains that it is possible for mysql_query() to succeed, but<br>
> mysql_store_result() returns null when it should not. See:<br>
> <a href="http://dev.mysql.com/doc/refman/5.0/en/null-mysql-store-result.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/null-mysql-store-result.html</a><br>
><br>
> I created a bug report and attached a patch that fixes the bug. I think the<br>
> fix is correct, but I'm not sure how to run vtk's mysql tests (wasn't sure<br>
> how to set VTK_MYSQL_TEST_URL.) Maybe one of the authors of this class<br>
> wants to take a look? My application doesn't use vtk head, so I'm not<br>
> actually in a huge rush to see this bug fix pushed.<br>
><br>
> <a href="http://public.kitware.com/Bug/view.php?id=10788" target="_blank">http://public.kitware.com/Bug/view.php?id=10788</a><br>
><br>
> Pat<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Jeff Baumes, Ph.D.<br>
Technical Lead, Kitware Inc.<br>
(518) 881-4932<br>
</font></blockquote></div><br>