Stepping through FieldNames::init() shows that the field names are populated with empty strings, with the query:
select * from stock
It could be a problem in the mysql client. I'll take a look at that and see if I can see if data is returned from the raw c api.
> -----Original Message-----
> From: Chris Frey [mailto:cdfrey@stripped]
> Sent: Tuesday, February 08, 2005 10:11 AM
> To: plusplus@stripped
> Subject: Re: Problem with lookup_by_name
> On Tue, Feb 08, 2005 at 01:03:01PM -0500, Chris Frey wrote:
> > Trying to track down this bug... interesting that it only happens with
> > mysql 5. From the backtrace, it looks like the field name is known by
> > mysql++, since Row::operator has an arg of i=5, so the lookup by name
> > must have worked.
> Hmmmm, on second thought, there are only 5 fields in the example stock
> so this is incorrect.
> Patrick... if you are in the debugging mood, trace through the
> FieldNames::init() function in field_names.cpp, and see if you find any
> oddities in the field names that are added.
> I don't run mysql 5 yet, so I can't easily test it.
> - Chris
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1pia.com
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005