[fpc-pascal]MySQL 4.0 Files

Rainer Hantsch rainer at hantsch.co.at
Tue Oct 7 15:43:08 CEST 2003


Hi!

I did not program very much with MySQL in FPC until now, but when I understand
right, there are currently only three different MySQL unit versions.
One is very old, one is valit up to 3.2, and then there is one for v4.0.

Why not handle minor differences within one and the same unit and use
different filenames for the major versions?
So it will be relatively easy to use {$IFDEF} to choose different MySQL
versions at compile time from the commandline!




On Tue, 7 Oct 2003, Michael Van Canneyt wrote:
| On Mon, 6 Oct 2003, Florian Klaempfl wrote:
|
| > Michael Van Canneyt wrote:
| > >
| > > On Mon, 6 Oct 2003, Johann Glaser wrote:
| > >
| > >
| > >>Hi!
| > >>
| > >>
| > >>>They are available in source form only, not in binary form.
| > >>
| > >>Ah, I see. That is why they are not in my .debs.
| > >>
| > >>Why aren't they distributed in compiled form too?
| > >
| > >
| > > Because they have the same name as the 3.23 files. You can only have 1
| > > binary copy at a given time - unless you want to start juggling with
| > > compiler search paths all the time.
| > >
| > > In general I don't recommend using MySQL in FPC. The API fluctuates
| > > too much between minor versions, which can maybe be masked in C
| > > with some macros, but not in FPC.
| >
| > Can't we include the MySQL version in the filename?
|
| We can, but at their release rate, we'll end up with a lot of files,
| plus everyone must edit all their sources to correct the version number.
|
| Michael.
|
| _______________________________________________
| fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
| http://lists.freepascal.org/mailman/listinfo/fpc-pascal
|


mfg

  Ing. Rainer Hantsch

-- 
.---------------------------------------------------------------------.
|      \\|//              Ing. Rainer HANTSCH  -  Hardware + Software |
|      (o o)        Service - Support - WEB-Design und Programmierung |
|--oOOo-(_)-oOOo------------------------------------------------------|
| Ing. Rainer HANTSCH |  mail: office at hantsch.co.at                   |
| Khunngasse 21/20    |   www: http://www.hantsch.co.at               |
| A-1030 Vienna       |   tel: +43-1-79885380    fax: +43-1-798853818 |
| ** A u s t r i a ** | handy: +43-664-9194382   UID-Nr: ATU 11134002 |
'---------------------------------------------------------------------'





More information about the fpc-pascal mailing list