X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 56CE85E40BA for ; Sun, 22 Aug 2004 02:13:38 -0300 (ADT) 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 39590-07 for ; Sun, 22 Aug 2004 05:13:32 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id DBED25E3F15 for ; Sun, 22 Aug 2004 02:13:29 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7M5DRiG043551 for ; Sun, 22 Aug 2004 05:13:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7M53DcC042033 for pgsql-odbc@postgresql.org; Sun, 22 Aug 2004 05:03:13 GMT From: Mischa Sandberg User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: Syntax to pass IN parameters through ODBC References: <001801c41e7b$3fd10490$d903a8c0@glowtek.com> In-Reply-To: <001801c41e7b$3fd10490$d903a8c0@glowtek.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 16 Message-ID: Date: Sun, 22 Aug 2004 05:03:13 GMT To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/40 X-Sequence-Number: 4349 Sheeraz fazal wrote: > I am accessing PostgreSQL 7.3.2 through psqlodbc. I need to call a my > function "get_number(integer)". I don't know which place holder should i > use that ODBC do know that this is for "integer" parameter. > > I am using VisualC++. Which require that, parameters should be bound to > some name (column name or parameter name) before calling the db function. > ... > But when i introduct an IN parameter like > "?=call get_number(?)" it doesn't work. You are indeed using the correct syntax. (?) is the placeholder for any type of parameter. Check the doc for SQLBindParameter(). You should be binding to parameters 1 and 2.