Hi,
1.
I am using C_API for accessing data from MYSQL.
2.
mysql_query() function returns the following values:
0 if the query is successful
-1 if the query fails.
3.
At the same time mysql-C_API documentation specifies
that it returns a non zero number if query is a
failure.Does the function return any other values
other than -1 if the query fails?
4.
If I use the mysql_query() for INSERT or UPDATE
statements I am facing the following problem:
If the database column value I am trying to update is
the same as the the value already existing in the
database,then the mysql_query() returns  0 and the 
mysql_affected_rows() returns zero.

It will be good if mysql_query either returns -1  for
this case as the value being updated is same as that
of existing one.

Regards,
Ravi


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to