Hey,
I'm using the C api, issuing a "SELECT" statement and then calling
mysql_store_result().
What id like to know is, if I keep the MYSQL_ROW structure returned from
mysql_fetch_row(), and then call mysql_fetch_row() again into a different
MYSQL_ROW structure -- is that first MYSQL_ROW structure still valid in
memory?
Eg, could I do something like this (I dont want to, but its an easy
example..):
MYSQL_ROW row1, row2;
/* SELECT and mysql_store_result, result set is >= 2 rows */
row1 = mysql_fetch_row();
row2 = mysql_fetch_row();
And then use both row1 and row2 as valid rows..
Cheers,
--
- Lee H // anfl
- I code, therefore I break things.
Attachment: [application/pgp-signature] Digital signature signature.asc
| Thread |
|---|
| • mysql_store_result() and MYSQL_ROW allocations | Lee H | 18 Mar |