summaryrefslogtreecommitdiffstats
path: root/modules/database (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-031-16/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Remove more log message prefixes that are now redundant as theStefan Fritsch2011-11-291-20/+20
| | | | | | | the error log format includes the module name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208110 13f79535-47bb-0310-9956-ffa450edef68
* mod_dbd: The dbd_prepared_init() function reported the result of the lastGraham Leggett2011-11-291-3/+2
| | | | | | | prepared statement, obscuring earlier errors. Fixed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208078 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-2/+2
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174748 13f79535-47bb-0310-9956-ffa450edef68
* Use a var INSTALLBASE to simplify NetWare installation rules.Guenter Knauf2011-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082821 13f79535-47bb-0310-9956-ffa450edef68
* Use var for prelude so its possible to change it at one place.Guenter Knauf2011-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082811 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-081-2/+2
| | | | | | | Removed absolute paths to imp files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079487 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-081-8/+8
| | | | | | | Take 1. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079407 13f79535-47bb-0310-9956-ffa450edef68
* Removed obsolete include paths from NetWare makefiles.Guenter Knauf2010-07-231-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966904 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-061-1/+1
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* Always make mod_*.h files available where they exist, modpath by modpathWilliam A. Rowe Jr2009-08-281-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808722 13f79535-47bb-0310-9956-ffa450edef68
* Switch mod_dbd to using APR_STATUS_IS_foo macros in error handlingNick Kew2009-08-212-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@806692 13f79535-47bb-0310-9956-ffa450edef68
* Fix module scope, to avoid this, copy and past from loadable modules, not coreWilliam A. Rowe Jr2009-04-232-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@767806 13f79535-47bb-0310-9956-ffa450edef68
* mod_dbd: add DBDInitSQL command. PR 46827Nick Kew2009-04-212-15/+91
| | | | | | | Patch by Marko Kevac. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@766938 13f79535-47bb-0310-9956-ffa450edef68
* Remove anomalous copyright lineNick Kew2009-03-051-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@750620 13f79535-47bb-0310-9956-ffa450edef68
* * modules/database/mod_dbd.cPaul Querna2008-10-291-1/+10
| | | | | | | | (dbd_child_init): New function, wrapper around dbd_setup_init. (dbd_hooks): Call dbd_child_init instead of casting dbd_setup_init. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708820 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in r689224 (thanks rpluem for spotting it)Nick Kew2008-08-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@689246 13f79535-47bb-0310-9956-ffa450edef68
* Try to get a meaningful error message when dbd_open failsNick Kew2008-08-261-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@689224 13f79535-47bb-0310-9956-ffa450edef68
* Revert prior change; some of these are registeredWilliam A. Rowe Jr2008-06-072-13/+13
| | | | | | | and therefore the wrong declspec. But why is the question, and this should be reviewed before release. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664160 13f79535-47bb-0310-9956-ffa450edef68
* No.William A. Rowe Jr2008-06-062-13/+13
| | | | | | _NONSTD refers to type fn (arg, arg, ...) incomplete declarations git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664080 13f79535-47bb-0310-9956-ffa450edef68
* Handle integer configuration directive parameters with a dedicatedChris Darroch2008-04-091-19/+24
| | | | | | | function, akin to dbd_param_flag(). Only needed when APR_HAS_THREADS. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646453 13f79535-47bb-0310-9956-ffa450edef68
* reverted r553031 since it breaks Linux/Unix platform builds.Guenter Knauf2007-07-051-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@553563 13f79535-47bb-0310-9956-ffa450edef68
* changed error message to use APU_DBD_DRIVER_FMT for correct driver name;Guenter Knauf2007-07-041-5/+1
| | | | | | | removed platform ifdefs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@553031 13f79535-47bb-0310-9956-ffa450edef68
* apr_dbd_check_conn() just returns APR_SUCCESS or APR_EGENERAL, so weChris Darroch2007-05-191-1/+4
| | | | | | | | don't actually have a driver-specific value to pass to apr_dbd_error(), but that's OK because most/all drivers just ignore this value anyway git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@539687 13f79535-47bb-0310-9956-ffa450edef68
* removed obsolete -prefix; minor cosmetic changes.Guenter Knauf2007-03-221-20/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@521264 13f79535-47bb-0310-9956-ffa450edef68
* added proper error message for NetWare.Guenter Knauf2007-03-221-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@521230 13f79535-47bb-0310-9956-ffa450edef68
* Introduce configuration groups to allow inheritance by virtual hosts ofChris Darroch2007-02-061-153/+276
| | | | | | | | | | | | | | | | | | | database configurations from the main server. The post_config hook function determines the minimal set of distinct configurations necessary so that database connection pools are shared between virtual hosts whenever possible. The SQL statements which should be prepared for each database connection are now stored in a hash for each virtual host during the configuration phase, and these hashes are merged in the normal manner using apr_hash_overlay() with that of the main server. This allows for statements to be de-registered by DBDPrepareSQL, if desired. The post_config hook function then compares the statements registered for each virtual host when determining if a separate configuration group is required. The changes in r424798, r432560, r432562, and r466641, which still have problems with configuration inheritance, are therefore no longer necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@503931 13f79535-47bb-0310-9956-ffa450edef68
* Implement a BASEDIR build environment variable to allow the NetWare build to ↵Bradley Nicholes2007-02-011-1/+1
| | | | | | | | relocate the install files Submitted by: Guenter Knauf <fuankg apache org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@502051 13f79535-47bb-0310-9956-ffa450edef68
* We now create memory sub-pools for each DB connection and close DBChris Darroch2007-01-161-66/+84
| | | | | | | | | | | | | | | | | | | | | | | | connections in a pool cleanup function. This simplifies the ap_dbd_acquire() and ap_dbd_cacquire() functions, and also stops us from leaking ap_dbd_t structures when using reslists. We ensure that prepared statements are destroyed before their DB connection is closed, in case any drivers would have problems cleaning up prepared statements after the DB connection is closed. The combination of reslists and memory pool cleanup functions was causing segfaults when child processes exited, as reported in PR 39985. To prevent this, we register dbd_destroy() as a cleanup that will execute prior to the internal cleanup function registered by apr_reslist_create(). When the reslist's memory pool is destroyed, dbd_destroy() informs dbd_destruct() not to do anything when subsequently called by the reslist's internal cleanup function. We avoid the use of s->process->pool (the global pool) since it isn't destroyed by exiting child processes in most multi-process MPMs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@496831 13f79535-47bb-0310-9956-ffa450edef68
* Embed the .manifest files of all httpd binaries as a post-buildWilliam A. Rowe Jr2007-01-111-4/+16
| | | | | | | | | | operation. This ensures the exported (Studio 97 generated) .mak files create a usable Apache directly from the VC 8 (Studio 2005) command line environment. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@495126 13f79535-47bb-0310-9956-ffa450edef68
* Fix several strict compiler warnings for both the threadedChris Darroch2007-01-041-8/+12
| | | | | | | and non-threaded versions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@492394 13f79535-47bb-0310-9956-ffa450edef68
* Handle error conditions in dbd_construct() properly. SimplifyChris Darroch2007-01-021-113/+111
| | | | | | | | | | ap_dbd_open() and use correct arguments to apr_dbd_error() when non-threaded. Register correct cleanup data in non-threaded ap_dbd_acquire() and ap_dbd_cacquire(). Clean up configuration data and merge function. Use ap_log_error() wherever possible. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@491884 13f79535-47bb-0310-9956-ffa450edef68
* Rename functions and variables for consistency, and move some functionsChris Darroch2007-01-021-233/+310
| | | | | | | around for readability, prior to forthcoming functional changes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@491729 13f79535-47bb-0310-9956-ffa450edef68
* Stop mod_dbd emitting bogus error messages when it's loadedNick Kew2006-12-111-0/+21
| | | | | | | but not configured. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@485311 13f79535-47bb-0310-9956-ffa450edef68
* * Add the missing include of http_request.h and thus fix a compiler warning.Ruediger Pluem2006-12-071-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@483630 13f79535-47bb-0310-9956-ffa450edef68
* Stash DBD connections in request_config of initial requestChris Darroch2006-12-021-2/+24
| | | | | | | | only, or else sub-requests and internal redirections may cause entire DBD pool to be stashed in a single HTTP request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@481509 13f79535-47bb-0310-9956-ffa450edef68
* mod_dbd: Key the storage of prepared statements on the hex stringGraham Leggett2006-10-221-11/+2
| | | | | | | | | value of server_rec, rather than the server name, as the server name may change (eg when the server name is set) at any time, causing weird behaviour in modules dependent on mod_dbd. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@466641 13f79535-47bb-0310-9956-ffa450edef68
* Log a message if we try to prepare a statement not attached to a hostname.Nick Kew2006-08-181-0/+2
| | | | | | | This fix supplements r432560 (don't crash). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432562 13f79535-47bb-0310-9956-ffa450edef68
* Don't use NULL s->server_hostname as hash lookup key.Nick Kew2006-08-181-5/+12
| | | | | | | | | Reported by paritosh (at limewire.co.in) on dev@httpd (thread Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery) Fixed by paritosh and Yours Truly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432560 13f79535-47bb-0310-9956-ffa450edef68
* Remove dependence on server config from ap_dbd_prepare, as that mayNick Kew2006-07-231-4/+28
| | | | | | | | | | | be called in per-directory config functions where there is no server context causing segfault. Discussion at http://mail-archives.apache.org/mod_mbox/httpd-dev/200607.mbox/<831327593.20060720023332%40engec.ru> and subsequent thread. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@424798 13f79535-47bb-0310-9956-ffa450edef68
* update license header textRoy T. Fielding2006-07-112-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
* Revert Revision 397647William A. Rowe Jr2006-07-061-2/+2
| | | | | | | | While it solves the studio 2005 (we desire this), it breaks the studio 6 packaging (we require this). Discussion on list of practical solutions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@419644 13f79535-47bb-0310-9956-ffa450edef68
* PR#39761Nick Kew2006-06-091-2/+5
| | | | | | | | Make the error message more meaningful when DBD is configured without a driver. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@413015 13f79535-47bb-0310-9956-ffa450edef68
* This resource /D syntax was pretty horridly imported into VS 2005,William A. Rowe Jr2006-04-271-2/+2
| | | | | | change the quotation to ensure a peaceful transition to sln/vcproj files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@397647 13f79535-47bb-0310-9956-ffa450edef68
* Remove all /machine:I386 references, these are getting in the wayWilliam A. Rowe Jr2006-04-271-5/+5
| | | | | | | | of switching linkers from the x86 (default linker) to x64 or other possible target platforms. (Also, this commit cleans up lingering /GX switches from the 'BASE' options that are supposed to be unused). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@397407 13f79535-47bb-0310-9956-ffa450edef68
* PR#39386: Fix merge-config to support prepared statements (Brian J. France)Nick Kew2006-04-231-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@396310 13f79535-47bb-0310-9956-ffa450edef68
* s|/GX |/EHsc | because they were always synonyms, and Visual StudioWilliam A. Rowe Jr2006-04-201-1/+1
| | | | | | 2005 edition complains bitterly and loudly that /GX is deprecated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395419 13f79535-47bb-0310-9956-ffa450edef68
* Remove a host of dependencies upon awk, using the same template forWilliam A. Rowe Jr2006-04-201-32/+3
| | | | | | | | | | | | nearly every .rc compilation (giving the output .res file a different name for each component). Adds AP_SERVER_BASEPROJECT to ap_revision.h so we can display the proper name of "Apache HTTP Server" as opposed to AP_SERVER_BASEPRODUCT (which is, and should remain, simply "Apache" for the server string tokens.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395418 13f79535-47bb-0310-9956-ffa450edef68
* Log a better error message if initialisation fails on prepared statements.Nick Kew2006-03-161-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@386321 13f79535-47bb-0310-9956-ffa450edef68
* Small spelling fix.Graham Leggett2005-12-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@359565 13f79535-47bb-0310-9956-ffa450edef68