From: Kevin Harwell Date: Mon, 6 Jun 2022 20:09:44 +0000 (-0500) Subject: cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type X-Git-Tag: 19.6.0-rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7599a380d0d6897124bad7dfccd2c4132e7c0b8;p=thirdparty%2Fasterisk.git cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type See also: ASTERISK_30023 ASTERISK-30096 #close patches: inline on issue - submitted by Morvai Szabolcs Change-Id: I79c0b74862100acd9c8319dca5cc456a654d02eb --- diff --git a/cel/cel_odbc.c b/cel/cel_odbc.c index 12f4a0618d..f73eece70a 100644 --- a/cel/cel_odbc.c +++ b/cel/cel_odbc.c @@ -606,6 +606,7 @@ static void odbc_log(struct ast_event *event) break; case SQL_TYPE_TIMESTAMP: case SQL_TIMESTAMP: + case SQL_DATETIME: if (ast_strlen_zero(colptr)) { continue; } else { diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index 178a4837a9..b6a878a853 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -1133,6 +1133,7 @@ static int require_odbc(const char *database, const char *table, va_list ap) break; case SQL_TYPE_TIMESTAMP: case SQL_TIMESTAMP: + case SQL_DATETIME: if (type != RQ_DATE && type != RQ_DATETIME) { warn_type(col, type); }