pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13536: SQLParamData thows "Invalid Endian" error
2+ messages / 2 participants
[nested] [flat]

* BUG #13536: SQLParamData thows "Invalid Endian" error
@ 2015-08-03 18:23  lthompson@alteryx.com
  0 siblings, 1 reply; 2+ messages in thread

From: lthompson@alteryx.com @ 2015-08-03 18:23 UTC (permalink / raw)
  To: pgsql-bugs@postgresql.org

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"



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



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

* Re: [BUGS] BUG #13536: SQLParamData thows "Invalid Endian" error
@ 2015-08-04 07:16  Heikki Linnakangas <hlinnaka@iki.fi>
  parent: lthompson@alteryx.com
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2015-08-04 07:16 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: Pg Bugs <pgsql-bugs@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



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


end of thread, other threads:[~2015-08-04 07:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 18:23 BUG #13536: SQLParamData thows "Invalid Endian" error lthompson@alteryx.com
2015-08-04 07:16 ` Heikki Linnakangas <hlinnaka@iki.fi>

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