pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josef Springer <Josef.Springer@JOOPS.COM>
To: Marten Feldtmann <m.feldtmann@t-online.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Windows, ODBC drivers and strange points ...
Date: Mon, 10 Oct 2005 15:02:57 +0200
Message-ID: <434A6681.9090103@joops.com> (raw)
References: <4348F935.8030506@t-online.de>
	<434A1401.6060606@joops.com>
	<434A465C.6090701@t-online.de>

Sorry Marten, but i am using the ODBC interface on Smalltalk level only, 
so i am not able to answer your questions. The only fact i can say is, 
that the ODBC driver accept strings as an one byte array and answer 
strings as two byte array.

Sorry,
Josef Springer

Marten Feldtmann wrote:

> Actually this is still a point I have to investigate. To made
> all stuff working in a correct way I need another information
> about how much bytes actually used ... or I need an information
> that I have to deal with UNICODE stuff.
>
> Within the ODBC driver interface I deal with cbLength and
> cbPrecision (information delivered by the ODBC drivers). The
> first one tells the interface, how much  bytes are reserved
> for this column and cbPrecision tells me, what was the length
> when executing the create statement.
>
> Therefore under PostgreSQL it's:
>
> For CHAR(15), cbLength is ALWAYS 30 and cbPrecision is always
> 15.
>
> Both information are not enough - I need to know, how much of
> cbLength of this buffer I must use to create the string (and
> of course how to interpret the byte stream: single byte character
> or doubule byte character) - or cbLength changes it's value
> depending on the
>
> Perhaps it would be better to have
>
> CHAR(15) -> cbLength = 15, cbPrecision = 15 (if single-byte database)
> CHAR(15) -> cbLength = 30, cbPrecision = 15 (if unicode database)
>
> but there also seem to be other parameters within the ODBC
> specs to get this information - I just have not found the overall
> picture.
>
> Marten
>
> Josef Springer schrieb:
>
>> Hi Marten,
>>
>> i am using  PostgreSQL 8.0.3 an  ODBC 8.0.1.2 with VisualWorks 7. I 
>> am using a UNICODE database (with the same client connect datatype) 
>> and all works fine because of the result data aspect. It seems, that 
>> other than UNICODE make problems in any case.
>>
>> Josef Springer
>>
>>

-- 

mit freundlichen GrĂĽssen,
Josef Springer
(Geschäftsleitung)

<cid:part1.07030304.06070703@netscape.com>  -- the software company --

Orlando-di-Lasso Str. 2
D-85640 Putzbrunn

Tel. ++49(0)89 600 6920
Fax ++49(0)89 600 69220
mailto Josef.Springer@joops.com <mailto:Josef.Springer@joops.com>
Website http://www.joops.com

Attachments:

image120.jpg (image/jpeg, 7.6K) download view image

view thread (12+ messages)  latest in thread

Message-ID: <434A6681.9090103@joops.com>
Permalink:  ../434A6681.9090103@joops.com/
Also on:    postgresql.org/message-id/434A6681.9090103@joops.com

 · 

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: Josef.Springer@JOOPS.COM, m.feldtmann@t-online.de
  Subject: Re: Windows, ODBC drivers and strange points ...
  In-Reply-To: <434A6681.9090103@joops.com>
  References: <4348F935.8030506@t-online.de> <434A1401.6060606@joops.com> <434A465C.6090701@t-online.de> <434A6681.9090103@joops.com>

* 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