[fpc-pascal] MySQL3, MySQL4, and MySql5 - Micha Might have answer

Jason P Sage jasonpsage at jegas.org
Sat Aug 5 20:15:37 CEST 2006


I heard from Michael Van Canneyt, or Micha, in an email not to long ago,
that the MySQL5 FPC unit is available and has been for awhile. My attempts
at finding it have been fruitless.

Question: Does anyone know where I can find the MySQL5 FPC unit that
succeeds MySql4 FPC unit?

Thank You Micha for help so far! 

Thanx all of you in advance (if/when you reply ;)

--- Now for some rambling --- BEGIN

I just wanted to report that I was able to resurrect my old MySQL 3 wrapper
(wraps the FPC MySQL/MySQL3 unit) using the FPC 2.0.2 version - COOL!

I was also able to make a new wrapper around the FPC MySQL4 unit using FPC
2.0.2 version - COOL once again! This was just like Micha said! The only
real big difference is how you connect.. but the calls are mostly the same.
The biggest difference, is that version 3 of mysql required you maintain a
pointer per connection - and this pointer was passed to every MySQL call.
The version 4 is ALMOST the same except there are now two pointers that seem
to matter most: 1 is, forgive my ignorance, but, seems to me... to be a
MYSQL CLIENT internal "GLOBAL" pointer to some internal structure that you
initialize with a mysql_init call. The other(s), are (an) individual pointer
for each/your connection (you) make, and these connection pointers can be
used to get meta data available about these connection(s) by passing them to
certain mysql_????? functions.

I'd just thought I'd post this other stuff to maybe help the next person.

--- Now for some rambling --- END

Have a great Day All!
Jason P Sage





More information about the fpc-pascal mailing list