[Lazarus] Multiple versions of MySQL/MariaDB

Michael Van Canneyt michael at freepascal.org
Fri Aug 28 13:44:00 CEST 2015



On Fri, 28 Aug 2015, Koenraad Lelong wrote:

> Hi,
>
> What defines the TMySQL-connection-version ? Are those the installed 
> libraries on the client ? Or is it the server ?
>
> Is it possible to detect which version of MySQL/MariaDB is used , and 
> according to the result select the right connection, at run-time ?

Load the mysql library manually and check the version returned by

function mysql_get_client_version:culong;

By far the easiest, I would imagine ?

Michael.




More information about the Lazarus mailing list