List:MySQL++« Previous MessageNext Message »
From:Patrick Lin Date:February 8 2005 10:05pm
Subject:RE: Problem with lookup_by_name
View as plain text  
Hi Chris,

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.

Patrick

> -----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
> table,
> 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.
> 
> Thanks,
> - 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
 
Thread
Problem with lookup_by_namePatrick Lin5 Feb
  • Re: Problem with lookup_by_nameChris Frey5 Feb
RE: Problem with lookup_by_namePatrick Lin7 Feb
  • Re: Problem with lookup_by_nameChris Frey8 Feb
    • Re: Problem with lookup_by_nameChris Frey8 Feb
RE: Problem with lookup_by_namePatrick Lin8 Feb
RE: Problem with lookup_by_namePatrick Lin8 Feb