List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:April 25 2005 7:24pm
Subject:Re: Count( ) function
View as plain text  
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

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