Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMWTF-0006Yu-G4 for pgsql-odbc@arkaria.postgresql.org; Tue, 04 Aug 2015 07:17:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZMWTE-0007pX-N8 for pgsql-odbc@arkaria.postgresql.org; Tue, 04 Aug 2015 07:17:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZMWTE-0007pO-BJ; Tue, 04 Aug 2015 07:17:08 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZMWT6-0004PK-J9; Tue, 04 Aug 2015 07:17:06 +0000 Received: by wicmv11 with SMTP id mv11so163452700wic.0; Tue, 04 Aug 2015 00:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=GY1PM+Iw4VHBBOB4Im7cg4gnJ1AOOHX2I9JRtXFHHWU=; b=RqpEHmsUAjsxnJE+CBABNcaq9QmwWhmasNIU6rvBm3uM5ygPZ4EwKRr/ZaZyV/i7Fp EDMJLIDuUPDIS5cro6WqRz5tWmdSWzJQKONpdkU7RKnDB2uDnBOh/50/49v6pNRrWxIy cbaIbLzLY0kJlQ2rl23NszHx3uj2OTjbTEuAW9a//uXyA4JrOyD1uXJhXqZlrRI+Yjaj UBayyVy/2q+TpXyVt5Ou4+PYBBeT0l79kVCq8X1U8Lu00+YXF/9ChfsksGDRVYNB4A/j aXOrOPQm87rjLZCRtcmIxn4ut99+xOyRboHASTSwdLsqAHnCp429Ad91NzErorCVnyd0 Q4cw== X-Received: by 10.180.85.194 with SMTP id j2mr4827545wiz.11.1438672619145; Tue, 04 Aug 2015 00:16:59 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id bd9sm762601wib.18.2015.08.04.00.16.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 00:16:58 -0700 (PDT) Message-ID: <55C066E7.1090208@iki.fi> Date: Tue, 04 Aug 2015 10:16:55 +0300 From: Heikki Linnakangas Reply-To: "pgsql-odbc@postgresql.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: lthompson@alteryx.com, "pgsql-odbc@postgresql.org" CC: Pg Bugs Subject: Re: [BUGS] BUG #13536: SQLParamData thows "Invalid Endian" error References: <20150803182338.1044.84028@wrigleys.postgresql.org> In-Reply-To: <20150803182338.1044.84028@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (Moving to the pgsql-odbc mailing list) On 08/03/2015 09:23 PM, lthompson@alteryx.com wrote: > The following bug has been logged on the website: > > Bug reference: 13536 > Logged by: Linda Thompson > Email address: lthompson@alteryx.com > PostgreSQL version: 9.4.1 > Operating system: windows > Description: > > With the 9.2 ODBC driver and many previous versions my SQLParamData worked > just fine. When we went to 9.3.3 and 9.3.4 ODBC Drivers, we can no longer > add Spatial objects. The second call to SQLParamData to add the next > Spatial object throws an error "Invalid Endian". However if we do 1 spatial > object at a time, we can add the exact same object with the exact same code. > I believe there is a bug somewhere in the new ODBC driver throwing the > wrong error code. IT should just be returning SQL_NEED_DATA or "done" The text "Invalid Endian" doesn't appear anywhere in the psqlODBC source code, so that must be coming from somewhere else. Could be because of something that psqlODBC did, but it's difficult to trace without more details. Could you write a self-contained little C program to reproduce this, please? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc