pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
int2: sql type bug?
3+ messages / 2 participants
[nested] [flat]

* int2: sql type bug?
@ 2008-08-11 20:55 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  2008-08-12 04:04 ` Re: int2: sql type bug? Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 1 reply; 3+ messages in thread

From: Joost Kraaijeveld @ 2008-08-11 20:55 UTC (permalink / raw)
  To: pgsql-odbc

Hi,


According to SQLColumns the sql type (DATA_TYPE) for a int2 column is
SQL_INTEGER. According to SQLGetTypeInfo the sql type is SQL_SMALLINT.

Is this a bug?

BTW: I am writing an application that uses the ODBC rather heavily. Is
ODBC actually maintained and is there someone who is prepared to answer
some questions (and accept (source)solutions for problems)?

-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: int2: sql type bug?
  2008-08-11 20:55 int2: sql type bug? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2008-08-12 04:04 ` Hiroshi Inoue <inoue@tpf.co.jp>
  2008-08-12 04:36   ` Re: int2: sql type bug? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  0 siblings, 1 reply; 3+ messages in thread

From: Hiroshi Inoue @ 2008-08-12 04:04 UTC (permalink / raw)
  To: J.Kraaijeveld@Askesis.nl; +Cc: pgsql-odbc

Joost Kraaijeveld wrote:
> Hi,
> 
> 
> According to SQLColumns the sql type (DATA_TYPE) for a int2 column is
> SQL_INTEGER. 

Here I get SQL_SMALLINT(=5) not SQL_INTEGER(=4) for int2 columns;
How do you call SQLColumns() and get the DATA_TYPE ?

regards,
Hiroshi Inoue





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: int2: sql type bug?
  2008-08-11 20:55 int2: sql type bug? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  2008-08-12 04:04 ` Re: int2: sql type bug? Hiroshi Inoue <inoue@tpf.co.jp>
@ 2008-08-12 04:36   ` Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  0 siblings, 0 replies; 3+ messages in thread

From: Joost Kraaijeveld @ 2008-08-12 04:36 UTC (permalink / raw)
  To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc

On Tue, 2008-08-12 at 13:04 +0900, Hiroshi Inoue wrote:
> Joost Kraaijeveld wrote:
> > Hi,
> > 
> > 
> > According to SQLColumns the sql type (DATA_TYPE) for a int2 column is
> > SQL_INTEGER. 
> 
> Here I get SQL_SMALLINT(=5) not SQL_INTEGER(=4) for int2 columns;
> How do you call SQLColumns() and get the DATA_TYPE ?

Ah, sorry for the inconvenience: it appears that that table itself does
not contain the right datatype. After correcting that it returns the
correct value.

Thanks for answering


-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-08-12 04:36 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-08-11 20:55 int2: sql type bug? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2008-08-12 04:04 ` Hiroshi Inoue <inoue@tpf.co.jp>
2008-08-12 04:36   ` Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>

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