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
This commit is contained in:
Kevin Harwell 2022-06-17 12:15:57 -05:00 committed by Joshua Colp
parent 5f60caa402
commit 4cbe12d6d1
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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);
}