Re: MySQL C API problems

2005-03-25 Thread Andrew Prock
On Fri, 25 Mar 2005, Andrew Prock wrote: > On Fri, 25 Mar 2005, Michael Stassen wrote: > > > Password hashing was changed in 4.1 to improve authentication security, but > > this complicates backward compatibility. See the manual for details: > >

Re: MySQL C API problems

2005-03-25 Thread Andrew Prock
On Fri, 25 Mar 2005, Michael Stassen wrote: > Password hashing was changed in 4.1 to improve authentication security, but > this complicates backward compatibility. See the manual for details: > >

Re: MySQL C API problems

2005-03-25 Thread Michael Stassen
Password hashing was changed in 4.1 to improve authentication security, but this complicates backward compatibility. See the manual for details: Your best bet is to link your app against

MySQL C API problems

2005-03-25 Thread Andrew Prock
I'm having some difficulty with a program I wrote which uses the MySQL C api. I'm trying to migrate my server from version 4.0 to version 4.1. I have no difficulty connecting to the server using the mysql.exe command line utility, but when I try to connect from my program using the same paramete

Re: Mysql C API problems

2002-06-29 Thread Georg Richter
On Saturday, 29. June 2002 11:15, Hugo Veiga wrote: Hello Hugo, > will this do? > if(!mysql_query(myData, query) > { >results = mysql_store_results(myData); > -if(mysql_num_rows() == 0) +if (!mysql_num_rows(results)) >{ >//action; >} > } with the above correction it

RE: Mysql C API problems

2002-06-29 Thread Dean Harding
> 1 - if i wanna make an action based on the fact that a query i just made > won't return results (empty set), how can i test that? > > will this do? > if(!mysql_query(myData, query) > { >results = mysql_store_results(myData); > >if(mysql_num_rows() == 0) >{ >//action;

Mysql C API problems

2002-06-29 Thread Hugo Veiga
hi there the present serves for some clearing some doubts i have: 1 - if i wanna make an action based on the fact that a query i just made won't return results (empty set), how can i test that? will this do? if(!mysql_query(myData, query) { results = mysql_store_results(myData);