X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3F8CB8B9E22 for ; Wed, 16 Feb 2005 23:41:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64835-08 for ; Wed, 16 Feb 2005 23:41:16 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id B1A268B9CE8 for ; Wed, 16 Feb 2005 23:41:15 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j1GNfChj030000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Feb 2005 16:41:14 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j1GNfBwx020743; Wed, 16 Feb 2005 16:41:12 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j1GNf8I9020742; Wed, 16 Feb 2005 16:41:08 -0700 (MST) (envelope-from mfuhr) Date: Wed, 16 Feb 2005 16:41:08 -0700 From: Michael Fuhr To: Rudinei Dias Cc: pgsql-interfaces@postgresql.org Subject: Re: Help with returning data type Message-ID: <20050216234108.GA20623@winnie.fuhr.org> References: <42134572.7040503@unilasalle.edu.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42134572.7040503@unilasalle.edu.br> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/60 X-Sequence-Number: 5305 On Wed, Feb 16, 2005 at 10:06:58AM -0300, Rudinei Dias wrote: > > * // 3 - THIS **DONT **WORK (retrieving bool) > ... > bytea = PQgetvalue(res, i, 0); > long_ret = atol(bytea); What's the value of bytea (the string bytea points to)? What output were you expecting? What output did you get? -- Michael Fuhr http://www.fuhr.org/~mfuhr/