mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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:
committed by
Joshua Colp
parent
5f60caa402
commit
4cbe12d6d1
@@ -606,6 +606,7 @@ static void odbc_log(struct ast_event *event)
|
|||||||
break;
|
break;
|
||||||
case SQL_TYPE_TIMESTAMP:
|
case SQL_TYPE_TIMESTAMP:
|
||||||
case SQL_TIMESTAMP:
|
case SQL_TIMESTAMP:
|
||||||
|
case SQL_DATETIME:
|
||||||
if (ast_strlen_zero(colptr)) {
|
if (ast_strlen_zero(colptr)) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1133,6 +1133,7 @@ static int require_odbc(const char *database, const char *table, va_list ap)
|
|||||||
break;
|
break;
|
||||||
case SQL_TYPE_TIMESTAMP:
|
case SQL_TYPE_TIMESTAMP:
|
||||||
case SQL_TIMESTAMP:
|
case SQL_TIMESTAMP:
|
||||||
|
case SQL_DATETIME:
|
||||||
if (type != RQ_DATE && type != RQ_DATETIME) {
|
if (type != RQ_DATE && type != RQ_DATETIME) {
|
||||||
warn_type(col, type);
|
warn_type(col, type);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user