Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Catacomb] Apache directive feature request: non-default DBMS portnumber

Thanks for your suggestion and it makes a lot of sense.
As soon as we move to the new svn repository, we will try to add the
DavDBMSPort directive. Meanwhile, your patch would be welcome, if you want
to make one.

- Sung
From: catacomb-bounces@webdav.org [mailto:catacomb-bounces@webdav.org] On
Behalf Of Andrew Morrow (BTS)
Sent: Sunday, February 08, 2004 1:56 PM
To: catacomb@webdav.org
Subject: [Catacomb] Apache directive feature request: non-default DBMS

Catacomb should have an Apache directive for specifying a non-default DBMS
port number.
The need for this feature is obvious.  Of course, some DBMS client API's
offer other kinds of parameters.  Even MySQL also has unixsocket and
clientflag in its client API (this is already TODO'ed in dbms_mysql.c) but
port is a very common parameter among DBMS client API's.
For database access to MySQL, Catacomb currently has

So, as a suggested name, adding a directive with a name like
which would specify a port number would fulfill this requirement.
The shortcut currently taken in the code is to pass a value of zero to get
the default port:
dbms.c : dbms_opendb() :
    status = dbms_create(&(d->db), d->db_id, d->db_pass, d->db_name,
d->db_host, 0);
With that and the example of the existing directives, its obvious how
to implement the rest of this new directive.