X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C5AFF9DC9BD for ; Tue, 7 Mar 2006 19:45:00 -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 54565-02 for ; Tue, 7 Mar 2006 19:45:02 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id DE7689DC993 for ; Tue, 7 Mar 2006 19:44:57 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k27NitHV086865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Mar 2006 16:44:58 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k27NitPA036794; Tue, 7 Mar 2006 16:44:55 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k27NittS036793; Tue, 7 Mar 2006 16:44:55 -0700 (MST) (envelope-from mfuhr) Date: Tue, 7 Mar 2006 16:44:55 -0700 From: Michael Fuhr To: German Raul Hoyos Parravicino Cc: "pgsql-admin@postgresql.org" Subject: Re: Fwd: Question Message-ID: <20060307234455.GA36726@winnie.fuhr.org> References: <912a25750603071236y6e61aa8ajb314650012d63928@mail.gmail.com> <912a25750603071409p1204d1f6je8dc7fb13f68cca5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <912a25750603071409p1204d1f6je8dc7fb13f68cca5@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.122] X-Spam-Score: 0.122 X-Spam-Level: X-Archive-Number: 200603/79 X-Sequence-Number: 20836 On Tue, Mar 07, 2006 at 05:09:56PM -0500, German Raul Hoyos Parravicino wrote: > I have a problem developing a ECPG program. I am making a programa using > FETCH, when the second row is sent the following message appear: > > ==>sqlcode [-213] msg[NULL value without indicator in line 1192.] [...] > Is it possible to use something similar to "isnull" in Oracle? Are you looking for the SQL-standard COALESCE? test=> SELECT COALESCE('foo', 'bar'); coalesce ---------- foo (1 row) test=> SELECT COALESCE(NULL, 'bar'); coalesce ---------- bar (1 row) See also the ECPG documentation on using indicators to detect NULL. -- Michael Fuhr