List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:May 3 2005 4:44am
Subject:Re: Count( ) function
View as plain text  
Hi Nicolas,

You emailed this a while ago, but I've been playing around with the type
info classes in mysql++... don't have any insights on your problem yet,
but what version of mysql C API (not mysql++) are you running?

(please reply to the list)

Thanks,
- Chris


On Mon, Apr 25, 2005 at 05:09:54PM -0300, Nicolas Barrera wrote:
> i ve already done it.. base_type().name() under the %s format brings
> me up a beautiful "x"!!!
> 
> On 4/25/05, Chris Frey <cdfrey@stripped> wrote:
> > On Mon, Apr 25, 2005 at 11:45:49AM -0300, Nicolas Barrera wrote:
> > > hi i m having the following problem...
> > > i 'm starting a query with the count(*) function....
> > > like: select aFieldName, count(*) as cant ........  ;
> > >
> > > the thing is that i m doing a type check when i got the Result object...
> > >
> > > with, result.types(j).base_type() == typeid(std::string)
> > > and with resultado.types(j).base_type() == typeid(int)
> > 
> > You could try printing the base_type to see what it is.
> > 
> > - Chris
> > 
> > 
> > --
> > MySQL++ Mailing List
> > For list archives: http://lists.mysql.com/plusplus
> > To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
> > 
> >
Thread
Count( ) functionNicolas Barrera25 Apr
  • Re: Count( ) functionChris Frey25 Apr
Re: Count( ) functionChris Frey3 May
  • Re: Count( ) functionNicolas Barrera3 May
    • Re: Count( ) functionEarl Miles3 May
      • Re: Count( ) functionNicolas Barrera3 May
        • Re: Count( ) functionWarren Young4 May