Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asI0Y-0000Cs-18 for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Apr 2016 22:51:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asI0X-0008Uc-K6 for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Apr 2016 22:51:05 +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 1asI0B-00084u-4y; Mon, 18 Apr 2016 22:50:43 +0000 Received: from mail1.asahi-net.or.jp ([202.224.39.197]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asI02-0000Xc-Gy; Mon, 18 Apr 2016 22:50:42 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id BC81AAF224; Tue, 19 Apr 2016 07:50:28 +0900 (JST) Subject: Re: psqlODBC 09.05.0200 Released To: Pavel Raiskup References: <20160409143629.2BC5CB4C40D@winpg.jp> <2358560.7dzo2vKd9I@nb.usersys.redhat.com> <2296086.oEo0rgFRTN@nb.usersys.redhat.com> <3259874.lgiBp3an9Y@nb.usersys.redhat.com> Cc: pgsql-odbc@postgresql.org, Hiroshi Saito , pgsql-announce@postgresql.org From: "Inoue, Hiroshi" Message-ID: <571564B6.5090809@dream.email.ne.jp> Date: Tue, 19 Apr 2016 07:50:30 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <3259874.lgiBp3an9Y@nb.usersys.redhat.com> 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 Pavel, On 2016/04/18 22:02, Pavel Raiskup wrote: > Weird, this should be reproducible almost everywhere, can somebody > confirm? > > Seems like the attached patch should help, though it is a clear revert for > commit d5374bcc4d58556eb5cc70241c44dcad4d9b441e. As there is no pointer > from the original fix to any discussion or bug report, I believe this is > regression and I'm proposing "as is". Can you point me somewhere so we > can try to find a real fix for the original issue? The commit handles the bug report [ODBC] Issue with Money field using ODBC to Access database posted by John Van De Giessen on Febrary 14. The bug was introduced in 9.5.0100 and the regression test result maybe modified. regards, Hiroshi Inoue >>> Hi, fyi, I keep getting... >>> >>> + cat ./regression.diffs >>> *** ./expected/param-conversions.out Sat Apr 9 14:19:08 2016 >>> --- results/param-conversions.out Thu Apr 14 15:44:56 2016 >>> *************** >>> *** 72,83 **** >>> >>> Testing "SELECT 1.3 > ?" with SQL_C_CHAR -> SQL_FLOAT param "3', 'injected, BAD!', '1"... >>> SQLExecDirect failed >>> ! 22P02=ERROR: invalid input syntax for type double precision: "3', 'injected, BAD!', '1"; >>> Error while executing the query >>> >>> Testing "SELECT 1.4 > ?" with SQL_C_CHAR -> SQL_FLOAT param "4 \'bad', '1"... >>> SQLExecDirect failed >>> ! 22P02=ERROR: invalid input syntax for type double precision: "4 \'bad', '1"; >>> Error while executing the query >>> >>> Testing "SELECT 1-?" with SQL_C_CHAR -> SQL_INTEGER param "-1"... >>> --- 72,83 ---- >>> >>> Testing "SELECT 1.3 > ?" with SQL_C_CHAR -> SQL_FLOAT param "3', 'injected, BAD!', '1"... >>> SQLExecDirect failed >>> ! 22P02=ERROR: invalid input syntax for type numeric: "3', 'injected, BAD!', '1"; >>> Error while executing the query >>> >>> Testing "SELECT 1.4 > ?" with SQL_C_CHAR -> SQL_FLOAT param "4 \'bad', '1"... >>> SQLExecDirect failed >>> ! 22P02=ERROR: invalid input syntax for type numeric: "4 \'bad', '1"; >>> Error while executing the query >>> >>> Testing "SELECT 1-?" with SQL_C_CHAR -> SQL_INTEGER param "-1"... >>> + read line >>> >>> ... on Fedora 23. I'll try to look more carefuly next week unless there >>> is somebody quicker than me. >>> >>> Thanks, Pavel -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc