:
mysql_fetch_lengths()
12/23/2004 02:14
t; > >
> > > In the code fragment below, there is a memory leak at line 8
> > > because mysql_fetch_lenghts returns an array of unsigned long
> > > integers representing the size of each column. So, has the retun
> > > value of mysql_fetch_lengths() been the
Subject: Re:
mysql_fetch_lengths
rns an array of unsigned long integers
> representing the size of each column. So, has the retun value of
> mysql_fetch_lengths() been the same for mysql 3.22.30 and 3.23.58?
>
> 1. unsigned long *lengths;
> 2. unsigned int num_fields;
> 3. unsigned int i;
> 4. MYSQL_RES *res
. So, has the retun value of mysql_fetch_lengths()
been the same for mysql 3.22.30 and 3.23.58?
Thank you ,
-Teresa
--
1. unsigned long *lengths;
2. unsigned int num_fields;
3. unsigned int i;
4. MYSQL_RES *result=NULL;
5. row = mysql_fetch_row(result);
6. if (row)
7. {
8. len