List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:March 16 1999 4:43am
Subject:Re: Info about retrieving in C api. Possible bug?
View as plain text  
At 10:37 PM -0600 3/15/1999, Paul DuBois wrote:
>At 10:24 PM -0600 3/15/1999, Wade Maxfield wrote:
>>  If you use mysql_store_result(), you can use mysql_num_rows() and find
>>out no rows were affected.
>>
>>  However, if you use mysql_num_rows() before calling mysql_use_result()
>>you get a segmentation fault.  This was not mentioned in the documentation
>>as causing a segmentation fault.
>
>No, but it does say you can't call mysql_num_rows() before calling
>mysql_use_result:
[passage from manual deleted]

I forgot to add that, even if you use mysql_store_result(), you can't call
mysql_num_row() *before* calling mysql_store_result(), either.  You must
call it afterward.

--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/
Madison Black Wolf: http://www.primate.wisc.edu/people/dubois/blackwolf/
Thread
Info about retrieving in C api. Possible bug?Wade Maxfield16 Mar
  • Re: Info about retrieving in C api. Possible bug?Paul DuBois16 Mar
    • Re: Info about retrieving in C api. Possible bug?Paul DuBois16 Mar
    • Re: Info about retrieving in C api. Possible bug?Wade Maxfield16 Mar