I'm resending the e-mail again so it may be clearest...
First of all, before I forget it...
My MySQL is:
mysql Ver 9.38 Distrib 3.22.32, for pc-linux-gnu (i686)
I have a problem with mysql_fetch_row...
When I use it the system goes to 100% CPU usage and nothing else, I get
not rows...
The problem seems to be inside the mysql_fetch_row function but I don't
know
I have just upgraded mysql to 3.23 but in the server I'm working there
is an older
one so I have to work with it...
************************* THIS IS C LANGUAGE ***********************
int main (int argc,char **argv)
{
MYSQL *MySQLConnect=NULL;
MYSQL_RES *result; // Resultado de las operaciones
.
.
.
Row = mysql_fetch_row(result); <-------- Here is the problem
j=0;
while(Row!=NULL);
{
printf("\n\t%u %4s",j,Row);
Row=mysql_fetch_row(result); <-------- And Here
j++;
}
.
.
.
}
**************************** END C *********************************
I know result contains a valid address before calling the function,
because I use it to show how many rows are available some lines before,
(42 rows) but the system blocks anyway until I press Ctrl-c
The program waits before j=0 and stops there;
Any points on this...?
Thank you
Answer to my e-mail too, thanks...
--
Gonzalo Aguilar. Madrid, España (Spain) |
Reymad Studios | [EMAIL PROTECTED] |
Privado | [EMAIL PROTECTED] |
----------------------------------------+
---------------------------------------------------------------------
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