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 024BE9DC9A1 for ; Tue, 3 Jan 2006 16:47:29 -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 98382-04 for ; Tue, 3 Jan 2006 16:47:29 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by postgresql.org (Postfix) with ESMTP id BBA0D9DC9AF for ; Tue, 3 Jan 2006 16:47:26 -0400 (AST) Received: by wproxy.gmail.com with SMTP id 57so2232273wri for ; Tue, 03 Jan 2006 12:47:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=unevpqiZe5i7bLmfKbBBOaCsZwsVf7sPCuIinmlJbbm86OfXSuvNUMCHEfudX4K2kpfxOHIqSLgld6r+SvS/2d2L2mc/ewqaaQSd3J5qB4zsFViOZMT45pmvb3k7gcPMYDZa0LIyBVqOJNiie2utSdc7x1AuIr0SxXtkyoTHGvc= Received: by 10.54.153.18 with SMTP id a18mr1433304wre; Tue, 03 Jan 2006 12:47:25 -0800 (PST) Received: by 10.54.92.14 with HTTP; Tue, 3 Jan 2006 12:47:25 -0800 (PST) Message-ID: Date: Tue, 3 Jan 2006 15:47:25 -0500 From: Jaime Casanova To: Jacques Gollion Subject: Re: BUG #2139: Problem when calling functions without any argument Cc: pgsql-bugs@postgresql.org In-Reply-To: <20060103112745.BB6CEF0AC6@svr2.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060103112745.BB6CEF0AC6@svr2.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.079 required=5 tests=[AWL=0.079] X-Spam-Score: 0.079 X-Spam-Level: X-Archive-Number: 200601/7 X-Sequence-Number: 13931 On 1/3/06, Jacques Gollion wrote: > > 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 powerbuild= er > 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. > and... where is the function? how is defined? how do you use it? code, please wiyhout that you can't expect any help... -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)