List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:April 23 2001 7:47pm
Subject:Re: Reg. determining version
View as plain text  
On Mon, Apr 23, 2001 at 08:37:31PM +0100, Aigars Grins wrote:
> When using <mysql.h> there is defined a:
> 
>     MYSQL_VERSION_ID
> 
> It's defined as something like:
> 
>     32235
> 
> I guess this is representing version 3.33.35.
> 
> Is this the 'right' way of determining version? I want to do something like
> an ifdef to incorporate support in my code for different versions of MySQL.

Yes, although 32235 represents 3.22.35, not 3.33.35.
 
> --
> Aigars
Thread
Reg. determining versionAigars Grins23 Apr
  • Re: Reg. determining versionPaul DuBois23 Apr