From: Mischa Sandberg <mischa.sandberg@telus.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Syntax to pass IN parameters through ODBC
Date: Sun, 22 Aug 2004 05:03:13 GMT
Message-ID: <lOVVc.43889$X12.26691@edtnps84> (raw)
In-Reply-To: <001801c41e7b$3fd10490$d903a8c0@glowtek.com>
References: <001801c41e7b$3fd10490$d903a8c0@glowtek.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: mischa.sandberg@telus.net
Subject: Re: Syntax to pass IN parameters through ODBC
In-Reply-To: <lOVVc.43889$X12.26691@edtnps84>
References: <001801c41e7b$3fd10490$d903a8c0@glowtek.com> <lOVVc.43889$X12.26691@edtnps84>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox