pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sheeraz fazal <ng@iwerx.vertextek.com>
To: pgsql-odbc@postgresql.org
Subject: Syntax to pass IN parameters through ODBC
Date: Fri, 9 Apr 2004 15:40:14 -0600
Message-ID: <001801c41e7b$3fd10490$d903a8c0@glowtek.com> (raw)

Hi,

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. 

If i am calling a function which is not accepting any parameter but returning a value i am using the syntax
"?=call get_number()" and it works. But when i introduct an IN parameter like
"?=call get_number(?)" it doesn't work. I am not sure the format i am using is specific to VisualC++ or it is ODBC standard syntax.

Any response in this regard is highly appreciated.

Thanks,

view thread (2+ messages)  latest in thread

Message-ID: <001801c41e7b$3fd10490$d903a8c0@glowtek.com>
Permalink:  ../001801c41e7b$3fd10490$d903a8c0@glowtek.com/
Also on:    postgresql.org/message-id/001801c41e7b$3fd10490$d903a8c0@glowtek.com

 · 

reply

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: ng@iwerx.vertextek.com
  Subject: Re: Syntax to pass IN parameters through ODBC
  In-Reply-To: <001801c41e7b$3fd10490$d903a8c0@glowtek.com>
  References: <001801c41e7b$3fd10490$d903a8c0@glowtek.com>

* 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