pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: michael.riksman@khalda-eg.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Rockwell FactoryTalk Says 'SQL_TIMESTAMP data type is not supported'
Date: Mon, 29 Jul 2019 13:33:09 +0900
Message-ID: <ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp> (raw)
In-Reply-To: <8d59c6fb05384b0a9b3352dea36c5ca2@SB-MBX-02.KHALDA-EG.com>
References: <6962f3d9-d8e0-0e11-9c84-0b855a7ac249@dream.email.ne.jp>
	<E3D77610-4272-4EAF-8776-E3A8733B9062@khalda-eg.com>
	<7fd5b1b9-9e21-1caa-7d39-026e003113ba@dream.email.ne.jp>
	<1169e59dc8dc4202be1d2fab835bd1fb@SB-MBX-02.KHALDA-EG.com>
	<54f4ae2c-1182-0b8d-db4a-57a41b4bb7d3@dream.email.ne.jp>
	<6567bd3971464a87b748c1cabe867519@SB-MBX-02.KHALDA-EG.com>
	<f1251aae-64d9-621d-5e51-11127f77c47a@dream.email.ne.jp>
	<6e492e58757549089c3b63a6a1d391d7@SB-MBX-02.KHALDA-EG.com>
	<c03f94d2-de4d-1bb5-590f-6b7296c98cd2@dream.email.ne.jp>
	<64908e4b78a9407ba529e850d81e7cbc@SB-MBX-02.KHALDA-EG.com>
	<8315b938-5edc-125f-bf58-a3fb65c524c1@dream.email.ne.jp>
	<8d59c6fb05384b0a9b3352dea36c5ca2@SB-MBX-02.KHALDA-EG.com>

Hi Michael,

On 2019/07/28 16:45, michael.riksman@khalda-eg.com wrote:
>
> Hey,
>
> I’m not sure what happened, but after restarting the PC, it started 
> working. I am sure I restarted after installing the driver, but 
> perhaps I didn’t…?
>
> But we have data!
>
> THANK YOU SO MUCH!
>
> I am curious – what was the original error with TIMESTAMP? What lines 
> of code did you change?
>

I would commit the following change.

inline patch 1: info.c (+1/-2 lines) download inline-1.patchdiff --git a/info.c b/info.c index 452dabf..c2dc0aa 100644 --- a/info.c +++ b/info.c @@ -1155,8 +1155,8 @@ PGAPI_GetTypeInfo(HSTMT hstmt,         {                 EnvironmentClass        *env = CC_get_env(conn); -               /* Filter unsupported data types */ -               if (EN_is_odbc2(env)) +               /* Filter unsupported data types when fSqlType =
SQL_ALL_TYPES */ +               if (SQL_ALL_TYPES == fSqlType && EN_is_odbc2(env))                 {                         switch (sqlType)                         { Since commit 778571, SQLGetTypeInfo() filters SQL_TYPE_DATE, SQL_TYPE_TIME and SQL_TYPE_TIMESTAMP for ODBC 2.x applications. However it doesn't seem appropriate to filter them for individual SQLGetTypeInfo(.., SQL_DATE/TIME/TIMESTAMP) because  Microsoft ODBC driver manager calls SQLGetTypeInfo(.., SQL_TYPE_DATE/TIME/TIMESTAMP) of ODBC 3.x drivers when ODBC 2.x applications call SQLGetTypeInfo(.., SQL_DATE/TIME/TIMESTAMP).   ** The behavior of unixODBC  is different. regards, Hiroshi Inoue > Thanks. > > Regards, > > Michael Riksman > > Instrument and Control Specialist > > Khalda Petroleum Co. > > A KPC/Apache Corp. Joint Venture > > Salam Base, Egypt > > Mob: +20 122 0530603 > > Email: michael.riksman@khalda-eg.com > > *From:*Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp] > *Sent:* Friday, 26 July 2019 2:29 PM > *To:* Michael Riksman (Salam - Gas) > *Cc:* pgsql-odbc@postgresql.org > *Subject:* Re: Rockwell FactoryTalk Says 'SQL_TIMESTAMP data type is > not supported' > > Hi, > > On 2019/07/25 15:27, michael.riksman@khalda-eg.com > <mailto:michael.riksman@khalda-eg.com> wrote: > > Hey, > > I turned it on; > > But the only time something is written to the trace is when I open > up the configuration window, and click OK; > > > > postgreSQL > > 51 ‘Tags in Model’ > > SQLpostgres.LOG > > > > Microsoft SQL > > 17 ‘Tags in Model’ > > SQLmsql.LOG > > But when I right-click and start the DataLog; > > Nothing is added to the SQL.LOG file/ODBC Tracing. > > Data is successfully being logged to Microsoft SQL at this point – > but still no additional data in the ODBC Tracing. > > > So there seems no ODBC API call. > Would you like to see the page > www.plctalk.net/qanda/archive/index.php/t-109368.html > <http://www.plctalk.net/qanda/archive/index.php/t-109368.html; ? > > regards, > Hiroshi Inoue > > > Regards, > > Michael Riksman > > Instrument and Control Specialist > > Khalda Petroleum Co. > > A KPC/Apache Corp. Joint Venture > > Salam Base, Egypt > > Mob: +20 122 0530603 > > Email: michael.riksman@khalda-eg.com > <mailto:michael.riksman@khalda-eg.com> > --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com Attachments:
image001.png (image/png, 13.5K) download view image
image002.jpg (image/jpeg, 3.9K) download view image
image003.jpg (image/jpeg, 14.7K) download view image
image004.jpg (image/jpeg, 15.1K) download view image
image005.jpg (image/jpeg, 22.2K) download view image

view thread (14+ messages)

Message-ID: <ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp>
Permalink:  ../ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp/
Also on:    postgresql.org/message-id/ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: h-inoue@dream.email.ne.jp, michael.riksman@khalda-eg.com
  Subject: Re: Rockwell FactoryTalk Says 'SQL_TIMESTAMP data type is not supported'
  In-Reply-To: <ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp>
  References: <6962f3d9-d8e0-0e11-9c84-0b855a7ac249@dream.email.ne.jp> <E3D77610-4272-4EAF-8776-E3A8733B9062@khalda-eg.com> <7fd5b1b9-9e21-1caa-7d39-026e003113ba@dream.email.ne.jp> <1169e59dc8dc4202be1d2fab835bd1fb@SB-MBX-02.KHALDA-EG.com> <54f4ae2c-1182-0b8d-db4a-57a41b4bb7d3@dream.email.ne.jp> <6567bd3971464a87b748c1cabe867519@SB-MBX-02.KHALDA-EG.com> <f1251aae-64d9-621d-5e51-11127f77c47a@dream.email.ne.jp> <6e492e58757549089c3b63a6a1d391d7@SB-MBX-02.KHALDA-EG.com> <c03f94d2-de4d-1bb5-590f-6b7296c98cd2@dream.email.ne.jp> <64908e4b78a9407ba529e850d81e7cbc@SB-MBX-02.KHALDA-EG.com> <8315b938-5edc-125f-bf58-a3fb65c524c1@dream.email.ne.jp> <8d59c6fb05384b0a9b3352dea36c5ca2@SB-MBX-02.KHALDA-EG.com> <ff0ed851-4cf4-e89e-2e69-b6d9ed163206@dream.email.ne.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox