[fpc-pascal] MySQL5

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jan 17 13:58:24 CET 2012


michael.vancanneyt at wisa.be hat am 17. Januar 2012 um 13:28 geschrieben:

>
>
> On Tue, 17 Jan 2012, Mattias Gaertner wrote:
>
> > Hi,
> >
> > I tried connecting to a mysql 5.5 database and used the fpc unit
mysql51.
> > There are only examples for 3 and 4, so I started with testdb4.pp and
> > adapted it.
> > It turned out that the MYSQL record is missing some new fields, so the
> > mysql_init overwrites the memory behind.
> > After adding some dummy bytes at the end it worked nice.
> >
> > Is there a better way?
>
> Yes, convert the mysql 5.5. headers. Or adapt the 5.1 headers to match
the
> 5.5 specs.


;)




> That is how we bring it up-to-date whenever a new MySQL version appears.


I only found mysql51 headers. Are there some newer ones?

I would like my program to still run when the next small upgrade comes. As
far as I can see new things are only added at the end, so adding some dummy
bytes for "future extensions" may help here. Is this wishful thinking?


Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120117/a88b16d8/attachment.html>


More information about the fpc-pascal mailing list