DevHeads.net

Regarding conversion of SQL_TSI_DAY operator for Datetimeadd function in ODBC driver

Hi,

Platform / Version info:
Postgres 11.4
psqlODBC_x64 v 11.01.0000

I'm a developer working with PowerQuery / ODBC and I'm running into the following issue.

I'm developing a custom connector which is utilizing this driver. I've attached the logs as requested when making a bug report. It looks like the SQL_TSI_DAY operator is being "interpreted" by the driver as a column reference rather than making the necessary conversion to the correct datetimeadd "interval" .
I'm attaching the connector file - ODBCPostgresDirect simply because it contains all the flags that I'm setting for SQLCapabilities, ODBC function overrides etc.
Any input on this would be helpful.
Best,
Scott

Comments

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Inoue, Hiroshi at 08/09/2019 - 19:56

Hi Scott,

Unfortunately neither TIMESTAMPADD() nor TIMESTAMPDIFF() is supported now.
Could you please try test drivers which would support them?

regards,
Hiroshi Inoue

On 2019/08/09 0:00, Scott Goley wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Scott Goley at 08/10/2019 - 17:51

Hiroshi,

Thank you for your response. I will definitely look into that.
Is there any resource which specifies what functions and flags are supported via the current psqlODBC driver? That would be extremely helpful to me if you were aware of one.
Best,
Scott G

On Aug 9 2019, at 8:56 pm, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Inoue, Hiroshi at 08/12/2019 - 05:44

Hi Scott,

Could you please try the test drivers 11.00.0200 on Windows at
<a href="https://winpg.jp/~inoue/psqlodbc/index.html" title="https://winpg.jp/~inoue/psqlodbc/index.html">https://winpg.jp/~inoue/psqlodbc/index.html</a>
?

regards,
Hiroshi Inoue

On 2019/08/11 7:51, Scott Goley wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Scott Goley at 08/13/2019 - 07:46

Hi Hiroshi,

Thank you for your response. I am not currently observing any change between this version and the previous version used. Please see the attached.
Best,
Scott

On Aug 12 2019, at 6:44 am, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Scott Goley at 08/13/2019 - 09:27

Hiroshi - my apologies. I believe that I did not appropriately remove the old version prior to adding this one to my system:

This is the correct result for that version of the driver:

The other mylog file is over 25mb. As a result, I'm sharing with you via a dropbox link:
<a href="https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0" title="https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0">https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0</a> (<a href="https://link.getmailspring.com/link/59D870E8-5ACB-407C-9724- ... at getmailspring dot com/0?redirect=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fiwff1b3dl36forr%2Fmylog_Microsoft_22916.log%3Fdl%3D0&amp;recipient=cGdzcWwtb2RiY0Bwb3N0Z3Jlc3FsLm9yZw%3D%3D" title="https://link.getmailspring.com/link/59D870E8-5ACB-407C-9724- ... at getmailspring dot com/0?redirect=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fiwff1b3dl36forr%2Fmylog_Microsoft_22916.log%3Fdl%3D0&amp;recipient=cGdzcWwtb2RiY0Bwb3N0Z3Jlc3FsLm9yZw%3D%3D">https://link.getmailspring.com/link/59D870E8-5ACB-407C-9724-BFF629FF2DD7...</a>)
Thank you very much for your quick assistance - I now see the driver attempting to cast via an interval on date fields.
Best,
Scott

On Aug 13 2019, at 8:46 am, Scott Goley < ... at gmail dot com> wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Inoue, Hiroshi at 08/14/2019 - 05:49

Hi Scott,

Could you please try the test drivers on Windows 11.00.0310 at
<a href="https://winpg.jp/~inoue/psqlodbc/index.html" title="https://winpg.jp/~inoue/psqlodbc/index.html">https://winpg.jp/~inoue/psqlodbc/index.html</a>
<https://link.getmailspring.com/link/59D870E8-5ACB-407C-9724- ... at getmailspring dot com/1?redirect=https%3A%2F%2Fwinpg.jp%2F~inoue%2Fpsqlodbc%2Findex.html&recipient=aC1pbm91ZUBkcmVhbS5lbWFpbC5uZS5qcA%3D%3D>
?

regards,
Hiroshi Inoue

On 2019/08/13 23:27, Scott Goley wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Scott Goley at 08/14/2019 - 08:22

Hiroshi,

I'm afraid this version has broken my ability to make a connection so I am unable to verify the rest of the changes. This is after verifying the driver updated correctly and is showing on the logs as "11.01.0310"

Best regards,
Scott

On Aug 14 2019, at 6:49 am, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Inoue, Hiroshi at 08/14/2019 - 09:24

Oops sorry,
The error was caused by changes about another problem.

Could you please try the test drivers on Windows 11.00.0320 at
<a href="https://winpg.jp/~inoue/psqlodbc/index.html" title="https://winpg.jp/~inoue/psqlodbc/index.html">https://winpg.jp/~inoue/psqlodbc/index.html</a>
<https://link.getmailspring.com/link/827528D4-F338-402D-B793- ... at getmailspring dot com/0?redirect=https%3A%2F%2Flink.getmailspring.com%2Flink%2F59D870E8-5ACB-407C-9724-BFF629FF2DD7%40getmailspring.com%2F1%3Fredirect%3Dhttps%253A%252F%252Fwinpg.jp%252F~inoue%252Fpsqlodbc%252Findex.html%26recipient%3DaC1pbm91ZUBkcmVhbS5lbWFpbC5uZS5qcA%253D%253D&recipient=aC1pbm91ZUBkcmVhbS5lbWFpbC5uZS5qcA%3D%3D>
?

regards,
Hiroshi Inoue

On 2019/08/14 22:22, Scott Goley wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By Scott Goley at 08/14/2019 - 15:10

Hiroshi,

I'm happy to say that this has reflected a massive improvement in performance for this connector / driver.
Thank you very much!
I can tell there are some edge cases which are not working as expected but in general this meets my very high level requirements.
Let me take a few days to isolate these particular issues remaining with reproducible conditions before sending you further logs.

I am most grateful.
Scott
On Aug 14 2019, at 10:24 am, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:

Re: Regarding conversion of SQL_TSI_DAY operator for Datetimeadd

By SAHOONG at 08/15/2019 - 05:54

Hello,

I need guidance on sending notification (data) to a soap server when transaction occur in PostgreSQL server? How can I accompany this?
Your help will be highly appreciated.

Thank you.

Regards,Sahoong

Hiroshi,
I'm happy to say that this has reflected a massive improvement in performance for this connector / driver.
Thank you very much!
I can tell there are some edge cases which are not working as expected but in general this meets my very high level requirements. Let me take a few days to isolate these particular issues remaining with reproducible conditions before sending you further logs.
I am most grateful.
Scott

Oops sorry,The error was caused by changes about another problem.
Could you please try the test drivers on Windows 11.00.0320 athttps://winpg.jp/~inoue/psqlodbc/index.html?
regards,Hiroshi Inoue

Hiroshi,
I'm afraid this version has broken my ability to make a connection so I am unable to verify the rest of the changes. This is after verifying the driver updated correctly and is showing on the logs as "11.01.0310"

Best regards,Scott
On Aug 14 2019, at 6:49 am, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:
Hi Scott,
Could you please try the test drivers on Windows 11.00.0310 athttps://winpg.jp/~inoue/psqlodbc/index.html?
regards,Hiroshi Inoue

Hiroshi - my apologies. I believe that I did not appropriately remove the old version prior to adding this one to my system:
This is the correct result for that version of the driver:

The other mylog file is over 25mb. As a result, I'm sharing with you via a dropbox link:
<a href="https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0Thank" title="https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0Thank">https://www.dropbox.com/s/iwff1b3dl36forr/mylog_Microsoft_22916.log?dl=0...</a> you very much for your quick assistance - I now see the driver attempting to cast via an interval on date fields.
Best,Scott

On Aug 13 2019, at 8:46 am, Scott Goley < ... at gmail dot com> wrote:
Hi Hiroshi,
Thank you for your response. I am not currently observing any change between this version and the previous version used. Please see the attached.
Best,Scott
On Aug 12 2019, at 6:44 am, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:
Hi Scott,
Could you please try the test drivers 11.00.0200 on Windows athttps://winpg.jp/~inoue/psqlodbc/index.html?
regards,Hiroshi Inoue

Hiroshi,
Thank you for your response. I will definitely look into that.
Is there any resource which specifies what functions and flags are supported via the current psqlODBC driver?  That would be extremely helpful to me if you were aware of one.
Best,Scott G

On Aug 9 2019, at 8:56 pm, Inoue, Hiroshi <h- ... at dream dot email.ne.jp> wrote:
Hi Scott,
Unfortunately neither TIMESTAMPADD() nor TIMESTAMPDIFF() is supported now.Could you please try test drivers which would support them?
regards,Hiroshi Inoue

Hi,
Platform / Version info:
Postgres 11.4psqlODBC_x64 v 11.01.0000
I'm a developer working with PowerQuery / ODBC and I'm running into the following issue.

I'm developing a custom connector which is utilizing this driver. I've attached the logs as requested when making a bug report. It looks like the SQL_TSI_DAY operator is being "interpreted" by the driver as a column reference rather than making the necessary conversion to the correct datetimeadd "interval" .
I'm attaching the connector file - ODBCPostgresDirect simply because it contains all the flags that I'm setting for SQLCapabilities, ODBC function overrides etc.
Any input on this would be helpful.
Best,Scott

| | ウイルス フリー。 <a href="http://www.avg.com" title="www.avg.com">www.avg.com</a> |