You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/04/12 17:34:03 UTC

DO NOT REPLY [Bug 46827] Execute some SQL statement after database connection has been established

https://issues.apache.org/bugzilla/show_bug.cgi?id=46827


Marko Kevac <mk...@gmail.com> changed:

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




--- Comment #3 from Marko Kevac <mk...@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