diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-21 23:24:41 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-21 23:24:41 +0000 |
commit | 6e09cb5e8914384748b0f087e46643f08342c6d4 (patch) | |
tree | 6ae452d92e8ace387105854344932bfe753ba23e /res/res_odbc.c | |
parent | dc031e8e3c92f6b34fe59ca2601c714a4fddca22 (diff) |
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/branches/1.4@43464 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_odbc.c')
-rw-r--r-- | res/res_odbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c index 7b7b2cc12..444e4f4d5 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) { |