Skip site navigation (1) Skip section navigation (2)

Port Bug Report: byte order problem on Inter and SGI

From: Unprivileged user <nobody>
To: pgsql-ports(at)postgresql(dot)org
Subject: Port Bug Report: byte order problem on Inter and SGI
Date: 1999-05-13 20:09:16
Message-ID: 199905132009.QAA00436@hub.org (view raw or flat)
Thread:
Lists: pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Wen Jiang
Your email address      : wj691781(at)bcm(dot)tmc(dot)edu

Category                : runtime: front-end: C++
Severity                : non-critical

Summary: byte order problem on Inter and SGI

System Configuration
--------------------
  Operating System   : RedHat 5.2 i386 and SGI Irix 6.5

  PostgreSQL version : 6.4.2

  Compiler used      : g++

Hardware:
---------


Versions of other tools:
------------------------


--------------------------------------------------------------------------

Problem Description:
--------------------
I setup backend on Redhat 5.2 on a PC, and C++ frontend on linux 
and SGI, the testlibpq5 program worked correctly, but the 
sgi version has wrong byte order for the binary cursor. 


--------------------------------------------------------------------------

Test Case:
----------
results from PC frontend/PC backend:
tuple 0: got
 i = (4 bytes) 1,
 d = (4 bytes) 3.567,
 p = (4 bytes) 2 points boundbox = (hi=3/4,lo = 1,2)
tuple 1: got
 i = (4 bytes) 2,
 d = (4 bytes) 89.05,
 p = (4 bytes) 2 points boundbox = (hi=4/3,lo = 2,1) 

results from SGI frontend/PC backend:
  tuple 0: got
 i = (4 bytes) 16777216,
 d = (4 bytes) -0.000768248,
 p = (4 bytes) 33554432 points  boundbox = (hi=0e-321/0e-321,lo = 0e-320,0e-323)
tuple 1: got
 i = (4 bytes) 33554432,
 d = (4 bytes) -3.17837e-23,


--------------------------------------------------------------------------

Solution:
---------


--------------------------------------------------------------------------


pgsql-ports by date

Next:From: Unprivileged userDate: 1999-05-14 01:30:40
Subject: Port Bug Report: Date problem
Previous:From: Bruce MomjianDate: 1999-05-13 15:56:27
Subject: Re: [PORTS] Port Bug Report: Incorrect search using 'select .... like ...' statement.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group