X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9F7709DC832 for ; Tue, 3 Jan 2006 07:27:44 -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 55566-04 for ; Tue, 3 Jan 2006 07:27:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by postgresql.org (Postfix) with ESMTP id B48179DC806 for ; Tue, 3 Jan 2006 07:27:42 -0400 (AST) Received: by svr2.postgresql.org (Postfix, from userid 80) id BB6CEF0AC6; Tue, 3 Jan 2006 11:27:45 +0000 (GMT) To: pgsql-bugs@postgresql.org Subject: BUG #2139: Problem when calling functions without any argument From: "Jacques Gollion" Message-Id: <20060103112745.BB6CEF0AC6@svr2.postgresql.org> Date: Tue, 3 Jan 2006 11:27:45 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200601/4 X-Sequence-Number: 13928 The following bug has been logged online: Bug reference: 2139 Logged by: Jacques Gollion Email address: jgollion@sambatechnologies.com PostgreSQL version: 8.1.1 Operating system: Windows 2000 Description: Problem when calling functions without any argument Details: have have written some functions without any argument. When my powerbuilder V9 application calls these functions, the behaviour is different : *Using ODBC driver, it works well *Using JDBC driver (I tried several versions), I get the error message "ERROR : Syntax error at or near $1. If I add a unused argument to the function; it works. If I call in JDBC the same function for Oracle or Sybase, it works. If I call other PostGreSQL functions with arguments, it works. Where am I wrong ? Thanks in advance for your help.