Nick Kew
5c94bb0140
Log a message if we try to prepare a statement not attached to a hostname.
...
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
2006-08-18 12:38:28 +00:00
Nick Kew
07e5187677
Don't use NULL s->server_hostname as hash lookup key.
...
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
2006-08-18 12:16:13 +00:00
Nick Kew
4d0960edaf
Remove dependence on server config from ap_dbd_prepare, as that may
...
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
2006-07-23 20:22:57 +00:00
Roy T. Fielding
de659cbed0
update license header text
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:33:53 +00:00
Nick Kew
04109c6452
PR#39761
...
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
2006-06-09 11:15:41 +00:00
Nick Kew
813eb9b9c7
PR#39386: Fix merge-config to support prepared statements (Brian J. France)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@396310 13f79535-47bb-0310-9956-ffa450edef68
2006-04-23 19:59:23 +00:00
Nick Kew
31eb7ed8c1
Log a better error message if initialisation fails on prepared statements.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@386321 13f79535-47bb-0310-9956-ffa450edef68
2006-03-16 12:47:53 +00:00
Nick Kew
05cec364c7
Improve defaults from 'test' values (and get meaningful errors on
...
startup if database is down); trivial tidyups.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@354400 13f79535-47bb-0310-9956-ffa450edef68
2005-12-06 10:54:57 +00:00
Colm MacCarthaigh
0acff75150
Optional functions are of __cdecl the kind on win32, due to "APU_DECLARE_NONSTD
...
apr_dynamic_fn_register" from apr-util, so we can't use __stdcall. Declare our
functions as non-std.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@349768 13f79535-47bb-0310-9956-ffa450edef68
2005-11-29 17:27:02 +00:00
Colm MacCarthaigh
6dac445844
Give DBD a set of _DECLARE macros consistent with other modules, so that
...
_EXPORT and _STATIC and be turned on/off more easily.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@349752 13f79535-47bb-0310-9956-ffa450edef68
2005-11-29 16:37:49 +00:00
Nick Kew
512ffac2c1
PR#37553
...
Redesign of pools handling in mod_dbd
Submitted: Chris Darroch, Reviewed: Nick Kew
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@348026 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 23:41:44 +00:00
Nick Kew
74e4bf0209
Wrap exported functions in AP_DECLARE
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@348008 13f79535-47bb-0310-9956-ffa450edef68
2005-11-21 23:01:49 +00:00
Nick Kew
54c8162ce5
Add defaults and comments for better robustness against misuse
...
(based on comments from Chris Darroch).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345128 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 21:20:33 +00:00
Nick Kew
dcb0ab5158
Fix (Chris Darroch) to register cleanup for persistent connection
...
in the no-threads case.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345040 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 15:30:32 +00:00
Nick Kew
3995bb8737
Fix driver-dependent potential memor-use bug in preparing statements
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@344140 13f79535-47bb-0310-9956-ffa450edef68
2005-11-14 15:06:07 +00:00
Nick Kew
b87b4fa9a0
Work if check_conn is NOTIMPL in a driver
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332142 13f79535-47bb-0310-9956-ffa450edef68
2005-11-09 21:12:45 +00:00
Nick Kew
7d8187cc83
Support dbd connections tied to the conn_rec.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@307439 13f79535-47bb-0310-9956-ffa450edef68
2005-10-09 14:19:22 +00:00
Nick Kew
cd3937b2d2
Fix pool in dbd_construct, and set sensible config defaults
...
(based on feedback from Brian France)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@292769 13f79535-47bb-0310-9956-ffa450edef68
2005-09-30 15:26:45 +00:00
Nick Kew
7f9e4fa4f9
Add note on DBD APIs to Module Developer Changes in new_features.
...
Update cast in mod_dbd.c as suggested by jorton.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@291100 13f79535-47bb-0310-9956-ffa450edef68
2005-09-23 10:56:07 +00:00
Nick Kew
63518050d4
Eliminate possible compiler warnings pointed out by Joe.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@290711 13f79535-47bb-0310-9956-ffa450edef68
2005-09-21 14:29:57 +00:00
Nick Kew
535d0ab956
Move mod_dbd from /experimental/ to /database/
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@290672 13f79535-47bb-0310-9956-ffa450edef68
2005-09-21 10:04:00 +00:00