[fpc-pascal] Re:The Interface to MySQL has changed on version by version Andi Purwito

Joost van der Sluis joost at cnoc.nl
Wed Oct 10 10:17:12 CEST 2007

Op dinsdag 09-10-2007 om 22:36 uur [tijdzone -0700], schreef L:
> > mysqlku.pas(16,18) Error: Identifier not found "TMYSQL"
> > mysqlku.pas(16,18) Error: Error in type definition
> > mysqlku.pas(18,22) Error: Identifier not found "TMYSQL_ROW"
> > mysqlku.pas(18,22) Error: Error in type definition
> > mysqlku.pas(74,17) Error: Operator is not  overloaded
> > mysqlku.pas(76,32) Error: Illegal qualifier
> > mysqlku.pas(76,35) Error: Illegal expression
> > mysqlku.pas(77,35) Error: Illegal qualifier
> > mysqlku.pas(77,38) Error: Illegal expression
> > mysqlku.pas(78,37) Error: Illegal qualifier
> > mysqlku.pas(78,44) Error: Illegal expression
> >
> > It's look that the interface has changed. But where can we get and follow its
> > change?
> Instead of using 'TMYSQL_ROW' try 'MYSQL_ROW' (omit the T).
> That way, you can compile the code with both versions of Mysql since the old
> units have the type definitions without the 'T' also.
> To Michael or whoever knows:
> Did the C header files use 'T' back then but not now?

The mysql4 unit is very, very old, and does only exist for
backwards-compatibility. The mysql40, mysql41 and mysql51 units could be
used. They are  as much as possible compatible to each other.


More information about the fpc-pascal mailing list