pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Barend Köbben <kobben@itc.nl>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Handling of Arrays broken..?
Date: Fri, 30 Mar 2012 21:55:20 +0900
Message-ID: <4F75AD38.2080601@tpf.co.jp> (raw)
In-Reply-To: <CB974733.4D6E%kobben@itc.nl>
References: <CB974733.4D6E%kobben@itc.nl>

Hi Barend,

(2012/03/27 17:30), Barend Köbben wrote:
> Hi,
>
> Since upgrading to PostgreSQL 9.1.2 and its psql-odbc driver (9.0.3.10),
> the results of queries to arrays seems broken. I have an SQL 'items'
> column of type character(3)[]. A 'normal' SQL query 'SELECT items FROM
> table' results in a proper Array (shows in PgAdmin as {100,999,122} ).
>
> In ASP JavaScript the same query done in an ADODB connection...
>
> SQLcmd.CommandText = "SELECT items FROM table";
> var RecSet = SQLcmd.Execute;
>
> while (!RecSet.EOF&&  !RecSet.BOF) {
>          var theItemsStr = RecSet.Fields.Item("items").Value;
>
> ...results in theItemsStr being '{10'
>
> The same code worked in an earlier installation with Postgres 8.4 and its
> driver (version?).
>
>
> By accident I found that the same thing with the SQL "SELECT items[1:99]
> FROM table" does work correctly (even if the array only has 3 items). Is
> this a bug that has been introduced in the new version of the driver, or
> is there something else I missed...?

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

regards,
Inoue, Hiroshi




view thread (5+ messages)  latest in thread

Message-ID: <4F75AD38.2080601@tpf.co.jp>
Permalink:  ../4F75AD38.2080601@tpf.co.jp/
Also on:    postgresql.org/message-id/4F75AD38.2080601@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, kobben@itc.nl
  Subject: Re: Handling of Arrays broken..?
  In-Reply-To: <4F75AD38.2080601@tpf.co.jp>
  References: <CB974733.4D6E%kobben@itc.nl> <4F75AD38.2080601@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