[fpc-devel] MySQL v4.0 v4.1 and v5.0

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Nov 18 11:49:44 CET 2005

On 18 nov 2005, at 11:34, Joost van der Sluis wrote:

>> Why is it impossible to have a mysql40connection,  
>> mysql41connection and
>> mysql50connection in one application? In what way is this  
>> different from
>> having mysqlconnection and ibconnection in one application?
> If we implement that, and sqldb is installed
> Laz --> mysql40conn (tmysql40conn) --> mysql40 (pmysql, mysql_init())
>         mysql41conn (tmysql41conn) --> mysql41 (pmysql, mysql_init())
>         mysql50conn (tmysql50conn) --> mysql50 (pmysql, mysql_init())
> Lazarus uses the mysql40conn,mysql41conn and mysql50conn units,  
> they all
> use a different mysql-unit, but all those units implement functions  
> and
> procedures with the same name, but with other arguments.
> I'm not sure it the compiler will allow that?

As long as you use fully qualified identifiers for all types, global  
variables, functions and procedures you use from those units, it  
shouldn't be a problem. If you don't use a fully qualified  
identifier, the one from the last unit in the uses clause which  
contains that identifier will be used.


More information about the fpc-devel mailing list