pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mahesh Bodepati <mahesh.bodepati@Xius.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: facing problem in outparameters in c
Date: Mon, 26 Oct 2020 10:45:16 +0000
Message-ID: <MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM> (raw)

Hi Team,

i am facing the problem in passing the outparameters in postgres package calling by using c language.can you please help us to solve the problem..

below is way iam calling the package.

 snprintf(buffer, sizeof(buffer),"SELECT  smp_ss7_mig_dev.pr_pkg_oss_networkserver_pr_sp_apply_sl_yn('%s','%s','%s', %d ,%d)",m_h_imsi.arr,m_h_hlraddress.arr,m_h_vlraddress.arr,m_ht_message,m_ht_msgType,allow_yn,po_ns_relay_reason,po_sl_relay_reason);

         res = PQexec(con,buffer);
         if (PQresultStatus(res) != PGRES_TUPLES_OK) {

                printf("No data retrieved\n");
                PQclear(res);
                PQfinish(con);
                exit(1);
                }



printf("allow_yn===%d\tpo_ns_relay_reason==%d\tpo_sl_relay_reason==%s\n",allow_yn,po_ns_relay_reason,po_sl_relay_reason.arr);




Thanks & Regards,
Mahesh Bodepati
Software Engineer- Engineering
XIUS
INNOVATE . LEAD.
mahesh.bodepati@xius.com<mailto:battini.subrahmanyam@xius.com>
http://www.xius.com<http://www.xius.com/;

view thread (6+ messages)  latest in thread

Message-ID: <MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM>
Permalink:  ../MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.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-general@postgresql.org
  Cc: mahesh.bodepati@Xius.com
  Subject: Re: facing problem in outparameters in c
  In-Reply-To: <MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM>
  References: <MAXPR01MB36478D4B42FF07E5657B068C96190@MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.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