[Asterisk-code-review] cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type (asterisk[19])

Kevin Harwell asteriskteam at digium.com
Fri Jun 17 12:03:04 CDT 2022


Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/18667 )


Change subject: cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type
......................................................................

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
---
M cel/cel_odbc.c
M res/res_config_odbc.c
2 files changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/67/18667/1

diff --git a/cel/cel_odbc.c b/cel/cel_odbc.c
index 12f4a06..f73eece 100644
--- a/cel/cel_odbc.c
+++ b/cel/cel_odbc.c
@@ -606,6 +606,7 @@
 					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 178a483..b6a878a 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -1133,6 +1133,7 @@
 					break;
 				case SQL_TYPE_TIMESTAMP:
 				case SQL_TIMESTAMP:
+				case SQL_DATETIME:
 					if (type != RQ_DATE && type != RQ_DATETIME) {
 						warn_type(col, type);
 					}

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18667
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 19
Gerrit-Change-Id: I79c0b74862100acd9c8319dca5cc456a654d02eb
Gerrit-Change-Number: 18667
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220617/9db3ef88/attachment.html>


More information about the asterisk-code-review mailing list