[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in Mysql C API?
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:sinisa@xxxxxxxxx
/*/ /*/ /*/\*\/*/ \*\|*| |*||*| 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 <mysql-thread68980@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
This mailing list archive is a service of Copilot Consulting.