Hi!
On Dec 07, Konstantin Osipov wrote:
> * Sergei Golubchik <serg@stripped> [07/12/07 21:21]:
> > > > It basically is a part of the public library API - it's the only
> > > > way for a client to support /etc/my.cnf configuration, which is
> > > > supposed to be common to all clients.
> > >
> > > I think we mean different things under words "client library'.
> > >
> > > Client library is a Connector/C. Not "a library to use if you
> > > build a MySQL command line client".
> >
> > Yes, I mean Connector/C. load_defaults() is de-facto part of
> > Connector/C because any client (*) that wants to support /etc/my.cnf
> > have to use load_defaults().
>
> load_defaults is not a documented part of the client library API.
It's explained in Paul's books.
> Are you suggesting it is added to the manual?
Perhaps, yes.
> > (*) and I mean *any*, not "mysql command line client". Gentoo
> > portage has 162 ebuilds that depend on virtual/mysql, with examples
> > like games-strategy/freeciv, mail-filter/dspam, media-sound/amarok.
>
> Sure, they depend on the Connector/C. But I would argue that *none* of
> them uses load_defaults.
I didn't check these three, right.
But a google search reveals quite a few references to load_defaults():
http://www.jsw4.net/info/listserv_archives/mysql/05-wk02/msg00115.html
http://www.listsearch.com/MySQL/Message/index.lasso?216520
http://www.searchy.net/mailinglists/MySQL_General/msg11412.html
http://www.galileo-press.de/openbook/c_von_a_bis_z/c_027_003.htm
http://search.cpan.org/~darren/MySQL-Config-1.03/lib/MySQL/Config.pm
(the last is the pupe-perl emulation, shows that the functionality is
used indeed)
... and many more
Regards / Mit vielen Grüssen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Developer
/_/ /_/\_, /___/\___\_\___/ MySQL GmbH, Dachauer Str. 37, D-80335 München
<___/ Geschäftsführer: Kaj Arnö - HRB
München 162140