Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anDo1-0005vn-4S for pgsql-odbc@arkaria.postgresql.org; Mon, 04 Apr 2016 23:21:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anDo0-0004j4-Eb for pgsql-odbc@arkaria.postgresql.org; Mon, 04 Apr 2016 23:21:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anDnd-0004K9-Uu for pgsql-odbc@postgresql.org; Mon, 04 Apr 2016 23:20:49 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anDnY-00022g-5h for pgsql-odbc@postgresql.org; Mon, 04 Apr 2016 23:20:48 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id C3E04368D3; Tue, 5 Apr 2016 08:20:38 +0900 (JST) Subject: Re: Regression test failures on big endian To: Christoph Berg References: <20160318211558.GA7269@msg.df7cb.de> <20160402220602.GB2042@msg.df7cb.de> Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <5702F6C6.6010707@dream.email.ne.jp> Date: Tue, 5 Apr 2016 08:20:38 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160402220602.GB2042@msg.df7cb.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Hi Christoph, Sorry for the late reply. On 2016/04/03 7:06, Christoph Berg wrote: > Re: To PostgreSQL ODBC 2016-03-18 <20160318211558.GA7269@msg.df7cb.de> >> Hi, >> >> 09.05.0100 is failing the result-conversions tests on big endian >> architectures, e.g. powerpc: >> >> https://buildd.debian.org/status/fetch.php?pkg=psqlodbc&arch=powerpc&ver=1%3A09.05.0100-1&stamp=1458326445 > Hi again, > > these failures are preventing psqlodbc from entering the next Debian > release, and hence are critical. > > Can anybody with more insight comment if the differences seen are real > problems or just cosmetic variations? In that case I could add more > _1.out files to catch them. > >> * expected/result-conversions.out Sun Jan 10 13:25:15 2016 >> --- results/result-conversions.out Fri Mar 18 18:40:34 2016 >> *************** >> *** 262,270 **** >> '1234567' (int4) as SQL_C_UTINYINT: 135 >> '1234567' (int4) as SQL_C_SBIGINT: 1234567 >> '1234567' (int4) as SQL_C_UBIGINT: 1234567 >> ! '1234567' (int4) as SQL_C_BINARY: hex: 87D61200 >> '1234567' (int4) as SQL_C_BOOKMARK: 1234567 >> ! '1234567' (int4) as SQL_C_VARBOOKMARK: hex: 87D61200 >> '1234567' (int4) as SQL_C_TYPE_TIME: h: 0 m: 0 s: 0 >> '1234567' (int4) as SQL_C_NUMERIC: precision: 7 scale: 0 sign: 0 val: 87d61200000000000000000000000000 >> '1234567' (int4) as SQL_C_GUID: SQLGetData failed >> --- 262,270 ---- >> '1234567' (int4) as SQL_C_UTINYINT: 135 >> '1234567' (int4) as SQL_C_SBIGINT: 1234567 >> '1234567' (int4) as SQL_C_UBIGINT: 1234567 >> ! '1234567' (int4) as SQL_C_BINARY: hex: 0012D687 >> '1234567' (int4) as SQL_C_BOOKMARK: 1234567 >> ! '1234567' (int4) as SQL_C_VARBOOKMARK: hex: 0012D687 >> '1234567' (int4) as SQL_C_TYPE_TIME: h: 0 m: 0 s: 0 >> '1234567' (int4) as SQL_C_NUMERIC: precision: 7 scale: 0 sign: 0 val: 87d61200000000000000000000000000 >> '1234567' (int4) as SQL_C_GUID: SQLGetData failed The difference above is a natural outcome from the difference of endianness. >> *************** >> *** 1328,1334 **** >> 'foobar' (text) as SQL_C_WCHAR: fooba (truncated) >> 'foobar' (text) as SQL_C_WCHAR: foobar >> '' (text) as SQL_C_CHAR: >> ! '' (text) as SQL_C_WCHAR: \FF00\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF (truncated) >> '2011-02-15 15:49:18' (timestamp) as SQL_C_CHAR: 2011-02-15 15:49:1 (truncated) >> '2011-02-15 15:49:18 BC' (timestamp) as SQL_C_CHAR: 2011-02-15 15:49:18 (truncated) >> 'NaN' (float4) as SQL_C_FLOAT: nan >> --- 1328,1334 ---- >> 'foobar' (text) as SQL_C_WCHAR: fooba (truncated) >> 'foobar' (text) as SQL_C_WCHAR: foobar >> '' (text) as SQL_C_CHAR: >> ! '' (text) as SQL_C_WCHAR: \ FF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF\FFFF (truncated) >> '2011-02-15 15:49:18' (timestamp) as SQL_C_CHAR: 2011-02-15 15:49:1 (truncated) >> '2011-02-15 15:49:18 BC' (timestamp) as SQL_C_CHAR: 2011-02-15 15:49:18 (truncated) The difference above means that encoding of Unicode is UTF-16LE whichever the endianness is. Is it as you expected? regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc