Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

mySQL unit

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Mills

Is there any documentation for the mySQL unit?
I'd like to check what errors I get from using mySQL, ie: check for the existance of a table, do appropiate action, etc...

cheers
James

Michael Van Canneyt
to James Mills
James Mills wrote
Is there any documentation for the mySQL unit?

No.

I'd like to check what errors I get from using mySQL, ie: check for the existance of a table, do appropiate action, etc...

The only documentation is the mysql documentation itself; The mysql unit is simply a translation of the mysql C headers.

The mysql_error() function returns a string that describes the error, maybe this is enough for your purposes.

Michael.

James Mills
to Michael Van Canneyt

thanks Michael...
I'd assume then that the makers of mySQL would have made all errors to a standard of some sort, so that the program will work throughout most versions of mySQL. (I hope *fingers crossed*). Anyway, I'll investigate...

cheers
James

Michael Van Canneyt wrote 23 lines
On Mon, 23 Sep 2002, James Mills wrote: > Is there any documentation for the mySQL unit? No. > I'd like to check what errors I get from using mySQL, ie: check for the > existance of a table, do appropiate action, etc... The only documentation is the mysql documentation itself; The mysql unit is simply a translation of the mysql C headers. The mysql_error() function returns a string that describes the error, maybe this is enough for your purposes. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Fernando Lozano

James,

Is there any documentation for the mySQL unit? I'd like to check what errors I get from using mySQL, ie: check for the existance of a table, do appropiate action, etc...

The mysql unit is a direct translation of the MySQL C API, so you can use the docs provided with MySQL itself.

[]s, Fernando Lozano