mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merged revisions 265910 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r265910 | tilghman | 2010-05-26 11:21:00 -0500 (Wed, 26 May 2010) | 7 lines Not finding rows in the DB does not rise to the level of a warning. (closes issue #17062) Reported by: drookie Patches: 20100525__issue17062.diff.txt uploaded by tilghman (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@265923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -563,8 +563,7 @@ static struct ast_config *realtime_multi_pgsql(const char *database, const char
|
|||||||
}
|
}
|
||||||
ast_free(fieldnames);
|
ast_free(fieldnames);
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_WARNING,
|
ast_debug(1, "PostgreSQL RealTime: Could not find any rows in table %s.\n", table);
|
||||||
"PostgreSQL RealTime: Could not find any rows in table %s.\n", table);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_mutex_unlock(&pgsql_lock);
|
ast_mutex_unlock(&pgsql_lock);
|
||||||
@@ -637,7 +636,7 @@ static int update_pgsql(const char *database, const char *tablename, const char
|
|||||||
newval = va_arg(ap, const char *);
|
newval = va_arg(ap, const char *);
|
||||||
|
|
||||||
if (!find_column(table, newparam)) {
|
if (!find_column(table, newparam)) {
|
||||||
ast_log(LOG_WARNING, "Attempted to update column '%s' in table '%s', but column does not exist!\n", newparam, tablename);
|
ast_log(LOG_NOTICE, "Attempted to update column '%s' in table '%s', but column does not exist!\n", newparam, tablename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user