[GRASS-user] db_fetch questions

Jaime Carrera jaicarrerahdez at yahoo.com
Wed Mar 19 19:19:37 EDT 2008


Hi list,

My apologies if this question fits better in the developers list. 
I'm trying to understand how db_fetch works and why am getting a strange error.
After a query is executed and db_open_select_cursor is used, db_fetch is used to fetch the data of the resultant query. AFAIK, db_fetch(&cursor, DB_NEXT, &more) fetches the data on a row by row basis; is this correct? My problem is that everything works fine on my program except the db_fetch loop, as the loop breaks after the first iteration (although my table has 3000 rows).
Can someone help me to figure out why the loop breaks?

Thanks,

Jaime

       
---------------------------------

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080319/2b3ea803/attachment.html


More information about the grass-user mailing list