summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-07-20 23:23:25 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-07-20 23:23:25 +0000
commit82448ad7d23de260487a0b86ea08c70cc6b1eba4 (patch)
treea6b69cab8006e8443b27dc3cc022852499254c24 /res
parentebf651105ec2ac565fb0b83d210b5370b62c0bcf (diff)
Separate queue_log arguments into separate fields, and allow the text file to be used, even when realtime is used.
(closes issue #17082) Reported by: coolmig Patches: 20100720__issue17082.diff.txt uploaded by tilghman (license 14) Tested by: coolmig git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_config_pgsql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 14a98a3b2..e356e8f83 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -1182,6 +1182,9 @@ static int require_pgsql(const char *database, const char *tablename, va_list ap
} else if (strncmp(column->type, "float", 5) == 0 && !ast_rq_is_int(type) && type != RQ_FLOAT) {
ast_log(LOG_WARNING, "Column %s cannot be a %s\n", column->name, column->type);
res = -1;
+ } else if (strncmp(column->type, "timestamp", 9) == 0 && type != RQ_DATETIME) {
+ ast_log(LOG_WARNING, "Column %s cannot be a %s\n", column->name, column->type);
+ res = -1;
} else { /* There are other types that no module implements yet */
ast_log(LOG_WARNING, "Possibly unsupported column type '%s' on column '%s'\n", column->type, column->name);
res = -1;