pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: the6campbells <the6campbells@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: 9.0.01 ODBC driver return values changed for sqlGetTypeInfo
Date: Thu, 28 Oct 2010 04:28:12 +0900
Message-ID: <4CC87D4C.6080409@tpf.co.jp> (raw)
In-Reply-To: <AANLkTikJbM_i4C=hc9y1HcLZvh4GPCVdoty1mV7hf23R@mail.gmail.com>
References: <AANLkTikJbM_i4C=hc9y1HcLZvh4GPCVdoty1mV7hf23R@mail.gmail.com>

Thanks for the report.
Could you please try the drivers on testing for 9.0.0102 at
   http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/
?

regards,
Hiroshi Inoue

(2010/10/27 8:08), the6campbells wrote:
> http://msdn.microsoft.com/en-us/library/ms714632(v=VS.85).aspx
>
> Using 8.4.2 driver on Windows
>
> SQL_SUCCESS           = SQLGetTypeInfo(StatementHandle =
> 0x36017c0,DataType = SQL_ALL_TYPES)
> SQL_SUCCESS           = SQLBindCol(Statement Handle =
> 0x36017c0,ColumnNumber = 1,TargetType = SQL_C_CHAR     ,TargetValuePtr =
> 0x12c0b4,BufferLength = 1028,StrLen_or_IndPtr = 2084091336)
> .....
> SQL_SUCCESS           = SQLBindCol(Statement Handle =
> 0x36017c0,ColumnNumber = 19,TargetType = SQL_C_SHORT    ,TargetValuePtr
> = 0x12d544,BufferLength = 2,StrLen_or_IndPtr = 1230120)
> SQL_SUCCESS           = SQLFetch(StatementHandle = 0x36017c0)
>   Row=0,TYPE_NAME          ,Type=SQL_C_CHAR
> ,bufLen=1028,size=4,data=int8
>   Row=0,DATA_TYPE          ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=-5
>   Row=0,COLUMN_SIZE        ,Type=SQL_C_LONG     ,bufLen=4,size=4,data=19
>   Row=0,LITERAL_PREFIX     ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,LITERAL_SUFFIX     ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,CREATE_PARAMS      ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,NULLABLE           ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=1
>   Row=0,CASE_SENSITIVE     ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,SEARCHABLE         ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=2
>   Row=0,UNSIGNED_ATTRIBUTE ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,FIXED_PREC_SCALE   ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,AUTO_UNIQUE_VALUE  ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,LOCAL_TYPE_NAME    ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,MINIMUM_SCALE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,MAXIMUM_SCALE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,SQL_DATA_TYPE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=-5
>   Row=0,SQL_DATETIME_SUB   ,Type=SQL_C_LONG
> ,bufLen=4,size=-1,data=(NULL)
>   Row=0,NUM_PREC_RADIX     ,Type=SQL_C_LONG     ,bufLen=4,size=4,data=10
>   Row=0,INTERVAL_PRECISION ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>
>
> Using 9.0.01 driver on Windows
>
> SQL_SUCCESS           = SQLBindCol(Statement Handle =
> 0x36017c0,ColumnNumber = 19,TargetType = SQL_C_SHORT    ,TargetValuePtr
> = 0x12d544,BufferLength = 2,StrLen_or_IndPtr = 1230120)
> SQL_SUCCESS           = SQLFetch(StatementHandle = 0x36017c0)
>   Row=0,TYPE_NAME          ,Type=SQL_C_CHAR
> ,bufLen=1028,size=4,data=int8
>   Row=0,DATA_TYPE          ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=-5
>   Row=0,COLUMN_SIZE        ,Type=SQL_C_LONG     ,bufLen=4,size=4,data=19
>   Row=0,LITERAL_PREFIX     ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,LITERAL_SUFFIX     ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,CREATE_PARAMS      ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,NULLABLE           ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=1
>   Row=0,CASE_SENSITIVE     ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,SEARCHABLE         ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=2
>   Row=0,UNSIGNED_ATTRIBUTE ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,FIXED_PREC_SCALE   ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,AUTO_UNIQUE_VALUE  ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,LOCAL_TYPE_NAME    ,Type=SQL_C_CHAR
> ,bufLen=1028,size=-1,data=(NULL)
>   Row=0,MINIMUM_SCALE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,MAXIMUM_SCALE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0
>   Row=0,SQL_DATA_TYPE      ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=-5
>   Row=0,SQL_DATETIME_SUB   ,Type=SQL_C_LONG     ,bufLen=4,size=4,data=-5
> <--------- DIFF
>   Row=0,NUM_PREC_RADIX     ,Type=SQL_C_LONG     ,bufLen=4,size=4,data=10
>   Row=0,INTERVAL_PRECISION ,Type=SQL_C_SHORT    ,bufLen=2,size=2,data=0



view thread (2+ messages)

Message-ID: <4CC87D4C.6080409@tpf.co.jp>
Permalink:  ../4CC87D4C.6080409@tpf.co.jp/
Also on:    postgresql.org/message-id/4CC87D4C.6080409@tpf.co.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: inoue@tpf.co.jp, the6campbells@gmail.com
  Subject: Re: 9.0.01 ODBC driver return values changed for sqlGetTypeInfo
  In-Reply-To: <4CC87D4C.6080409@tpf.co.jp>
  References: <AANLkTikJbM_i4C=hc9y1HcLZvh4GPCVdoty1mV7hf23R@mail.gmail.com> <4CC87D4C.6080409@tpf.co.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