X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id ECAD69DCD38 for ; Fri, 24 Feb 2006 14:23:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63576-07 for ; Fri, 24 Feb 2006 14:23:19 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id E904F9DCD30 for ; Fri, 24 Feb 2006 14:23:17 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id E85251033833; Fri, 24 Feb 2006 18:23:18 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66407-01; Fri, 24 Feb 2006 14:23:17 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id BD6941033827; Fri, 24 Feb 2006 18:23:16 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000567 ] Discrepant results versus other connections Content-type: text/plain; charset=UTF-8 Message-Id: <20060224182316.BD6941033827@pgfoundry.org> Date: Fri, 24 Feb 2006 18:23:16 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.727 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.163, NO_REAL_NAME=0.55] X-Spam-Score: -0.727 X-Spam-Level: X-Archive-Number: 200602/147 X-Sequence-Number: 7276 Bugs item #1000567, was opened at 2006-02-24 18:23 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000567&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Discrepant results versus other connections Initial Comment: I've found a case where psqlODBC doesn't match JODBC, psql, or Perl-DBD::Pg. It looks like a numeric/floating point issue perhaps? Using psqlodbc-08.00.0100 and psqlodbc-08.01.0200. Both compiled as 64bit, Postgres 8.0.1. Sample code: CREATE OR REPLACE FUNCTION plpgsql_multiply(numeric, float) RETURNS numeric AS $$ DECLARE BEGIN RETURN $1 * $2; END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION perl_ge(numeric, float) RETURNS bool AS $$ if ($_[0] >= $_[1]) { return true; } return false; $$ LANGUAGE plperl; SELECT perl_ge(47.3, plpgsql_multiply(43, 1.1)); -- true using JODBC, DBD::Pg, psql -- false using ODBC ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000567&group_id=1000125