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:
parent
5f60caa402
commit
4cbe12d6d1
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue