aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 23:29:32 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 23:29:32 +0000
commit234a124b3ea35fdb4e99ee52844cdfd8a822809e (patch)
tree9afd0a52f57b2bd33c5a12557a9ee29f612199ea /res/res_odbc.c
parent5d9eb2155609c29dfb622da39a68e34064a87a43 (diff)
Merged revisions 43464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43464 | tilghman | 2006-09-21 18:24:41 -0500 (Thu, 21 Sep 2006) | 2 lines Twould help if we actually documented how the new features in res_odbc actually work. (Oops) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43465 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_odbc.c')
-rw-r--r--res/res_odbc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 33836aa8d..e8f81ba4d 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -235,7 +235,8 @@ static int load_odbc_config(void)
limit = 0;
for (v = ast_variable_browse(config, cat); v; v = v->next) {
if (!strcasecmp(v->name, "pooling")) {
- pooling = 1;
+ if (ast_true(v->value))
+ pooling = 1;
} else if (!strcasecmp(v->name, "limit")) {
sscanf(v->value, "%d", &limit);
if (ast_true(v->value) && !limit) {