C API Question

2002-04-24 Thread Andrew Trese
In the MYSQL struct in the C API, how does one access the MYSQL_FIELD data? for example, and MYSQL struct has MYSQL_FIELD *fields; as a member variable. However, when I try to access any of the variables within fields for example, mysql.fields[0].name, I get a segmentation fault. Does anyone

C MYSQL Struct

2002-04-22 Thread Andrew Trese
I am having trouble accessing the data in the MySQL struct for C (included in the mysqlclient libraries). I am specifically unable to access the *fields (array?) within the struct. My program fails with segmentation faults whenever I try to access any variables within *fields. Does the mysql_