Re: Bug in Mysql C API?

2001-03-21 Thread Sinisa Milivojevic

Rafael Martinez writes:
  Hei
  
  If I send a SELECT sql-request to my DB and this request returns an 
  "Empty set" ...
  
  mysql_num_rows(MYSQL_RES *result) returns 0 - This is OK
  but mysql_num_fields(MYSQL_RES *result) returns 1 - This is not OK ;-)
  
  Why? Am I missing anything?
  
  Sincerely
  Rafael Martinez
  

No, the above is 100 % OK.

A relation with no tuples is still a relation. Like an wmpty set.


Regards,

Sinisa

    __ _   _  ___ ==  MySQL AB
 /*/\*\/\*\   /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/   \*\_   |*|   |*||*| mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*| Larnaca, Cyprus
  /*/ /*/  /*/\*\_/*/ \*\_/*/ |*|
  /*/^^^\*\^^^
 /*/ \*\Developers Team

-
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




Bug in Mysql C API?

2001-03-20 Thread Rafael Martinez

Hei

If I send a SELECT sql-request to my DB and this request returns an 
"Empty set" ...

mysql_num_rows(MYSQL_RES *result) returns 0 - This is OK
but mysql_num_fields(MYSQL_RES *result) returns 1 - This is not OK ;-)

Why? Am I missing anything?

Sincerely
Rafael Martinez



-
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