httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46827] Execute some SQL statement after database connection has been established
Date Sun, 12 Apr 2009 15:34:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46827


Marko Kevac <mkevac@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #23379|0                           |1
        is obsolete|                            |




--- Comment #3 from Marko Kevac <mkevac@gmail.com>  2009-04-12 08:34:01 PST ---
Created an attachment (id=23482)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23482)
main patch

This patch adds ability to the mod_dbd Apache module to execute any SQL
statements after DB connection have been established.

Patch is against httpd trunk.

Configuration example:

        DBDriver mysql
        DBDParams host=localhost,user=root,reconnect=0
        DBDPersist On
        DBDInitSQL "USE passport"
        DBDInitSQL "SET NAMES utf8"
        DBDMin 1

Order of the DBDInitSQL statements is preserved (statements will be executed in
same order they were in httpd.conf file).

Also this patch introduces optional post_connection hook, which enables any
other module to hook after connection were established.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message