You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Dave Ingram <da...@dmi.me.uk> on 2009/04/20 12:45:32 UTC

apr_dbd_get_name() emulation in apr-util 1.2

Hi all,

I've recently discovered that the current stable version of Debian ships
with apr-util 1.2 (even though 1.3 has been out for eight months!), but
an Apache module that I've written relies on fetching column names from
a database query. Does anyone have any suggestions as to how I could
emulate this for systems using older versions of apr-util?


Dave

Re: apr_dbd_get_name() emulation in apr-util 1.2

Posted by Bojan Smojver <bo...@rexursive.com>.
On Mon, 2009-04-20 at 11:45 +0100, Dave Ingram wrote:
> Does anyone have any suggestions as to how I could
> emulate this for systems using older versions of apr-util?

One (terrible) way to do it is here:

http://www.rexursive.com/svn/mod_spin/trunk/src/db.c

Look for words: "BIG TIME CHEATING" in the file. This will break every
time internals of 1.2.x apr-util are changed, of course. We are not
planning any more 1.2.x releases, but be warned.

Also, you could probably issue some DB specific SQL commands to get back
column names and then go from there.

-- 
Bojan