chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Help with the mysql egg


From: Jean-Philippe Theberge
Subject: [Chicken-users] Help with the mysql egg
Date: Tue, 22 Jan 2008 09:42:15 -0500
User-agent: Icedove 1.5.0.14pre (X11/20071025)

Hi,

I am having some trouble with the mysql egg mostly die to my misunderstanding of c-pointers

With the egg you get data either by index or by name. What I would like is more something like this example from the mysql-api documentation

unsigned int num_fields;

unsigned int i;
MYSQL_FIELD *fields;

num_fields = mysql_num_fields(result);
fields = mysql_fetch_fields(result);
for(i = 0; i < num_fields; i++)
{
  printf("Field %u is %s\n", i, fields[i].name);
}

The egg provide the foreign-mysql-fetch-fields. it return a #<pointer> object

How can I extract the name from this object in scheme? I want to do what "fields[i].name" do in the example above?
Thanks

--



BuddyPilots <http://www.buddypilots.com>
*Jean-Philippe Théberge*
*Programmeur Architecte*
Tel: (514) 353-2307







reply via email to

[Prev in Thread] Current Thread [Next in Thread]