mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
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
This commit is contained in:
@@ -1284,6 +1284,7 @@ static int require_pgsql(const char *database, const char *tablename, va_list ap
|
|||||||
if (!column) {
|
if (!column) {
|
||||||
if (requirements == RQ_WARN) {
|
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);
|
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 {
|
} else {
|
||||||
struct ast_str *sql = ast_str_create(100);
|
struct ast_str *sql = ast_str_create(100);
|
||||||
char fieldtype[15];
|
char fieldtype[15];
|
||||||
|
|||||||
Reference in New Issue
Block a user