pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC 2.0 Bug: wrong timestamp data type
2+ messages / 2 participants
[nested] [flat]
* ODBC 2.0 Bug: wrong timestamp data type
@ 2018-04-25 16:39 Oleg <tonal@aha.ru>
2018-04-27 03:47 ` Re: ODBC 2.0 Bug: wrong timestamp data type Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Oleg @ 2018-04-25 16:39 UTC (permalink / raw)
To: pgsql-odbc
Hello!
I used the latest driver version
(psqlodbc_10_02_0000-x64.zip).
If your application uses ODBC version 2.0. When you
call SQLGetTypeInfo, the driver reports supported data
types that are not available for version 2.0. The first
iteration of the result of this function for the timestamp
data type is SQL_TYPE_TIMESTAMP. If you then call
SQLBindParameter, ODBC Manager returns s1003 (SQL1).log).
The error could be corrected (SQL2.log). To verify this, I
made changes to the function PGAPI_GetTypeInfo: for ODBC
2.0 filter unsupported data types.
---- info.c (1153) ------------------------
QR_set_field_info_v(res, 18, "INTERVAL_PRECISION",
PG_TYPE_INT2, 2);
for (i = 0, sqlType = sqlTypes[0]; sqlType; sqlType =
sqlTypes[++i])
{
pgType = sqltype_to_pgtype(conn, sqlType);
// Filter unsupported data types
if (EN_is_odbc2(env) && (sqlType == SQL_TYPE_DATE ||
sqlType == SQL_TYPE_TIME || sqlType ==
SQL_TYPE_TIMESTAMP))
continue;
if (sqlType == SQL_LONGVARBINARY)
-------------------------------------------
Thank you for listening.
WBR,
Oleg Tonkikh.
Attachments:
SQL1.log (application/octet-stream, 2.0K) download
SQL2.log (application/octet-stream, 1.8K) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ODBC 2.0 Bug: wrong timestamp data type
2018-04-25 16:39 ODBC 2.0 Bug: wrong timestamp data type Oleg <tonal@aha.ru>
@ 2018-04-27 03:47 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Inoue, Hiroshi @ 2018-04-27 03:47 UTC (permalink / raw)
To: Oleg <tonal@aha.ru>; +Cc: pgsql-odbc
Hi Oleg,
If I provide test drivers, could you it?
regards,
Hiroshi Inoue
On 2018/04/26 1:39, Oleg wrote:
> Hello!
>
> I used the latest driver version (psqlodbc_10_02_0000-x64.zip).
> If your application uses ODBC version 2.0. When you call
> SQLGetTypeInfo, the driver reports supported data types that are not
> available for version 2.0. The first iteration of the result of this
> function for the timestamp data type is SQL_TYPE_TIMESTAMP. If you
> then call SQLBindParameter, ODBC Manager returns s1003 (SQL1).log).
> The error could be corrected (SQL2.log). To verify this, I made
> changes to the function PGAPI_GetTypeInfo: for ODBC 2.0 filter
> unsupported data types.
>
> ---- info.c (1153) ------------------------
> QR_set_field_info_v(res, 18, "INTERVAL_PRECISION", PG_TYPE_INT2, 2);
>
> for (i = 0, sqlType = sqlTypes[0]; sqlType; sqlType = sqlTypes[++i])
> {
> pgType = sqltype_to_pgtype(conn, sqlType);
>
> // Filter unsupported data types
> if (EN_is_odbc2(env) && (sqlType == SQL_TYPE_DATE || sqlType ==
> SQL_TYPE_TIME || sqlType == SQL_TYPE_TIMESTAMP))
> continue;
>
> if (sqlType == SQL_LONGVARBINARY)
> -------------------------------------------
>
> Thank you for listening.
>
> WBR,
> Oleg Tonkikh
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-04-27 03:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25 16:39 ODBC 2.0 Bug: wrong timestamp data type Oleg <tonal@aha.ru>
2018-04-27 03:47 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
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