Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1as8p7-0001oE-LN for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Apr 2016 13:02:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1as8p7-0000Xk-78 for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Apr 2016 13:02:41 +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_2) (envelope-from ) id 1as8ok-000087-7o; Mon, 18 Apr 2016 13:02:18 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1as8od-0003vZ-Iv; Mon, 18 Apr 2016 13:02:15 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A75E4C05681D; Mon, 18 Apr 2016 13:02:09 +0000 (UTC) Received: from nb.usersys.redhat.com (ovpn-200-19.brq.redhat.com [10.40.200.19]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3ID27bB016722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Apr 2016 09:02:08 -0400 From: Pavel Raiskup To: pgsql-odbc@postgresql.org Cc: Hiroshi Saito , pgsql-announce@postgresql.org Subject: Re: psqlODBC 09.05.0200 Released Date: Mon, 18 Apr 2016 15:02:06 +0200 Message-ID: <3259874.lgiBp3an9Y@nb.usersys.redhat.com> User-Agent: KMail/4.14.10 (Linux/4.4.6-301.fc23.x86_64; KDE/4.14.18; x86_64; ; ) In-Reply-To: <2296086.oEo0rgFRTN@nb.usersys.redhat.com> References: <20160409143629.2BC5CB4C40D@winpg.jp> <2358560.7dzo2vKd9I@nb.usersys.redhat.com> <2296086.oEo0rgFRTN@nb.usersys.redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart7558456.1sbHXdTNr9" Content-Transfer-Encoding: 7Bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Pg-Spam-Score: -7.9 (-------) 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 This is a multi-part message in MIME format. --nextPart7558456.1sbHXdTNr9 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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? Thanks! Pavel On Thursday 14 of April 2016 15:48:16 Pavel Raiskup wrote: > On Thursday 14 of April 2016 15:47:06 Pavel Raiskup wrote: > > 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 > > Full log: > https://kojipkgs.fedoraproject.org//work/tasks/9375/13659375/build.log > > Pavel --nextPart7558456.1sbHXdTNr9 Content-Disposition: attachment; filename="0001-Revert-Fix-the-bug-about-MONEY-type.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-Revert-Fix-the-bug-about-MONEY-type.patch"