diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-01 08:23:55 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-01 07:27:43 -0600 |
commit | fe40ccc821ad36305535cc4219b038cc789b4084 (patch) | |
tree | 4b921e2c0420bdf19648239a26b30b9a2131aff0 /res/res_config_pgsql.c | |
parent | 7d1df3056d54fcd23a9b1c65d013ddb13ddc9e05 (diff) |
res_config_pgsql: Make 'require' return consistent with other backends
res_config_pgsql should match the behavior of other realtime backend
drivers so that queue_log can disable adaptive logging.
ASTERISK-25628 #close
Reported by: Dmitry Wagin
Change-Id: Ic1fb1600c7ce10fdfb1bcdc43c5576b7e0014372
Diffstat (limited to 'res/res_config_pgsql.c')
-rw-r--r-- | res/res_config_pgsql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index 3c91f9d13..def998cce 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -1286,6 +1286,7 @@ static int require_pgsql(const char *database, const char *tablename, va_list ap if (!column) { if (requirements == RQ_WARN) { ast_log(LOG_WARNING, "Table %s requires a column '%s' of size '%d', but no such column exists.\n", tablename, elm, size); + res = -1; } else { struct ast_str *sql = ast_str_create(100); char fieldtype[15]; |