[Lazarus] Lazarus and MySQL 5.7

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Nov 21 10:33:37 CET 2016


On 2016-11-21 00:30, Giuliano Colla via Lazarus wrote:
> Lazarus 1.6 includes the package SQLDBLaz which provides support for MySQL from 
> versions 4.0 to 5.6.

Yes, and that "Lazarus Packages" is simply a IDE wrapper around the
components included by FPC's fcl-db code. You don't need Lazarus to use
any components or classes introduced by FPC.


> Looking into the sources, version 5.7 is already there, but the package doesn't 
> support it

It is pretty straight forward to create a new "registered component"
line in the Lazarus packages [SqlDBLaz], which in turn will register a
icon/component in Lazarus's component palette.

Too many developers don't seem to understand the underlying workings of
components or classes. If they don't see it in the component palette
they don't know how to use it. It is just sad how "RAD development" has
dumbed down so many developers.


> SQLConnector1.ConnectorType := 'MYSQL 5.7'; // programmatically because the OI doesn't have it
> MySQL57Connection1 := TMySQL57Connection.Create(Self); // programmatically because you can't drop it into the form

Glad to see you figured it out (RAD didn't get the better of you). Now
lets hope others can learn from that. :)


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


More information about the Lazarus mailing list