[Home]

Summary:ASTERISK-30096: cel_odbc: Column type 9 (field 'cdr:cel:eventtime') is unsupported at this time
Reporter:Morvai Szabolcs (morvai88)Labels:
Date Opened:2022-06-03 03:18:40Date Closed:2022-07-11 04:13:01
Priority:MinorRegression?
Status:Closed/CompleteComponents:CEL/cel_odbc
Versions:18.12.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The same issue which resolved in: ASTERISK-30023

The issue appears with ODBC driver:
*mysql-connector-odbc:amd64 8.0.29-1ubuntu20.04 amd64        MySQL ODBC driver*

MySQL version:
*mysql  Ver 8.0.29 for Linux on x86_64 (MySQL Community Server - GPL)*

Ubuntu version: *Ubuntu 20.04.4 LTS*

Resolve this issue with adding
{code}
--- asterisk-18.12.1/cel/cel_odbc.c~     2022-05-19 15:51:28.000000000 +0000
+++ asterisk-18.12.1/cel/cel_odbc.c 2022-06-03 08:23:05.422181784 +0000
@@ -606,6 +606,7 @@
                                       break;
                               case SQL_TYPE_TIMESTAMP:
                               case SQL_TIMESTAMP:
+                               case SQL_DATETIME:
                                       if (ast_strlen_zero(colptr)) {
                                               continue;
                                       } else {
{code}
line to cel/cel_odbc.c file.
Comments:By: Asterisk Team (asteriskteam) 2022-06-03 03:18:42.116-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Kevin Harwell (kharwell) 2022-06-03 09:34:37.703-0500

--Would you be interested in pushing a patch to [gerrit|https://gerrit.asterisk.org/] with a fix?--

*Edit:* I went ahead and pushed a patch up for this

By: Morvai Szabolcs (morvai88) 2022-06-07 05:48:22.401-0500

Thank you!

By: Friendly Automation (friendly-automation) 2022-07-11 04:13:02.236-0500

Change 18606 merged by Joshua Colp:
cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type

[https://gerrit.asterisk.org/c/asterisk/+/18606|https://gerrit.asterisk.org/c/asterisk/+/18606]

By: Friendly Automation (friendly-automation) 2022-07-11 04:13:15.454-0500

Change 18684 merged by Joshua Colp:
cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type

[https://gerrit.asterisk.org/c/asterisk/+/18684|https://gerrit.asterisk.org/c/asterisk/+/18684]

By: Friendly Automation (friendly-automation) 2022-07-11 04:13:33.185-0500

Change 18667 merged by Joshua Colp:
cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type

[https://gerrit.asterisk.org/c/asterisk/+/18667|https://gerrit.asterisk.org/c/asterisk/+/18667]

By: Friendly Automation (friendly-automation) 2022-07-11 04:13:58.149-0500

Change 18666 merged by Joshua Colp:
cel_odbc & res_config_odbc: Add support for SQL_DATETIME field type

[https://gerrit.asterisk.org/c/asterisk/+/18666|https://gerrit.asterisk.org/c/asterisk/+/18666]