Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9BB3C16D90F5 for ; Tue, 27 Mar 2012 05:30:30 -0300 (ADT) Received: from smtp01.itc.nl ([192.87.16.11] helo=smtp.itc.nl) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SCRnP-00047b-2g for pgsql-odbc@postgresql.org; Tue, 27 Mar 2012 08:30:29 +0000 Received: from itcnt09.itc.nl (172.16.2.9) by itcvs10.itc.nl (172.16.2.110) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 27 Mar 2012 10:30:06 +0200 Received: from itcnt27.itc.nl ([172.16.2.47]) by itcnt09.itc.nl ([172.16.2.9]) with mapi; Tue, 27 Mar 2012 10:30:12 +0200 From: =?iso-8859-1?Q?Barend_K=F6bben?= To: "pgsql-odbc@postgresql.org" Date: Tue, 27 Mar 2012 10:30:11 +0200 Subject: Handling of Arrays broken..? Thread-Topic: Handling of Arrays broken..? Thread-Index: Ac0L89PFjxte5yH2R5SGlClIsSKzXw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.14.0.111121 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -0.0 (/) X-Archive-Number: 201203/26 X-Sequence-Number: 10807 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 =3D "SELECT items FROM table"; var RecSet =3D SQLcmd.Execute; while (!RecSet.EOF && !RecSet.BOF) { var theItemsStr =3D 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...? Yours, -- Barend K=F6bben ITC - University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 217, 7500AE Enschede (The Netherlands) +31-(0)53 4874 253 Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for = the addressee only. If you are not the intended recipient, you are hereby n= otified that any disclosure, copying, distribution or action in relation to= the content of this information is strictly prohibited. If you have receiv= ed this e-mail by mistake, please delete the message and any attachment and= inform the sender by return e-mail. ITC accepts no liability for any error= or omission in the message content or for damage of any kind that may aris= e as a result of e-mail transmission.