Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX0gm-0007zL-Nc for pgsql-general@arkaria.postgresql.org; Mon, 26 Oct 2020 11:29:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kX0gk-0005wL-Dw for pgsql-general@arkaria.postgresql.org; Mon, 26 Oct 2020 11:29:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX00M-0001nl-JG for pgsql-general@lists.postgresql.org; Mon, 26 Oct 2020 10:45:34 +0000 Received: from mail-eopbgr1380102.outbound.protection.outlook.com ([40.107.138.102] helo=IND01-MA1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX00G-0007gB-WE for pgsql-general@lists.postgresql.org; Mon, 26 Oct 2020 10:45:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NJJGEv4UMzO6aEzY47y3lvQO/9GNZXe/Ztf92xN34aRRjrP5FkI6HnE029AzH5rlM+yuTi/BJVQv4Kfn/KpBt5zqtw0gKgFnX6g4hqX2D8Ti9pugwimaXkRVn9t4LpkG8q/dvKKkT0anAgRdnRGz/wSAYG2bkSDcXBaSn+vH/eloTdxidNIKLCrHReVbWO2zZ8dEFRb+HvTpPqM71nmsFw8gHuKF559fdZOMKTfXsSKUelHAsQIfnaNeouBvQU2PVYNhhamw4yxaB6NycZTtPNbnAWUDjZhr3IHZXcd+1y0Jr6MbGmBq8Gq3JQ9N4dzPtfZtwyGb6EEcZBbnSJkZfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uyHnlO8z2Zt8As8nxoW0zHvtPQU/TxpZ1beMk84yTU4=; b=bFUIGRZ3M4kknAgUz5Ypi1sA1VobXZrNiKezUNu/QxTPuZ/WN9GyxVF3/WS9NTuwsYR/XVgU4faesqtXPkOjQAgeE10KxfrvLe8WLuo6lSxfvkpqS4IRDB+qxt0x693d8rASY1+b9S9LUAyZ5iWiOWayvMPjxkid/uIfa9FiNbxDZUPth3yXkejLGXtORp/KjuK6LXRUbsNF74d16eSgzPVNJWdopMtpKd3SqkQjvdSG4HIHqQv9ofQR1MW/w2m7T2DzjSFhkSTlfaN6eHJuYEtjKhZEHEpap0L79JOnrRu5s8UI2GEc5/hAj0ZYgHAyd1rhPBQlclKl+EhbELeSaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xius.com; dmarc=pass action=none header.from=xius.com; dkim=pass header.d=xius.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=megasoftltd.onmicrosoft.com; s=selector2-megasoftltd-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uyHnlO8z2Zt8As8nxoW0zHvtPQU/TxpZ1beMk84yTU4=; b=kDejgNn/5WGJTQoMQ6DgGINpYwf5tRFOwT1jJy1sk6F4vRk8DUAYKKjjplb0v3ga9mExdUJ+sRgelfw0mDVfpSry3E2Lu6R/NKap4cHu/nT1+YrHccjgqA2y3T8LK2DkoRhDygYekhPU2nol0RHackW3/NpfhhEpwtD6U2TfUVM= Received: from MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:62::17) by MAXPR01MB4215.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Mon, 26 Oct 2020 10:45:17 +0000 Received: from MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM ([fe80::1d9e:8e3e:c90e:a59a]) by MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM ([fe80::1d9e:8e3e:c90e:a59a%5]) with mapi id 15.20.3499.018; Mon, 26 Oct 2020 10:45:17 +0000 From: Mahesh Bodepati To: "pgsql-general@lists.postgresql.org" Subject: facing problem in outparameters in c Thread-Topic: facing problem in outparameters in c Thread-Index: AQHWq4QWpetb4fui4UiYzQyVCpK+zg== Date: Mon, 26 Oct 2020 10:45:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.postgresql.org; dkim=none (message not signed) header.d=none;lists.postgresql.org; dmarc=none action=none header.from=Xius.com; x-originating-ip: [2409:4070:616:9060:183c:a489:a1b6:3b84] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30f845ce-e895-4b79-bdf5-08d8799c3a37 x-ms-traffictypediagnostic: MAXPR01MB4215: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2043; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: We3b0caxWKYSyZiXxh+b7N1ZKyBOGZ39szUu5puJ5x13mb8K6XaEyvuR5kxm0NofP/C0QiJxOIm6WRqZa7kvgg+dDJXLqLunFh1taUmnU4wSSw0R9A1A0NyibrltS80XcqnJkx7sk3VNScSvTk46s2JP7fU9kFA4q7EbWdudhzVsEXGiwEQ5JscaiJi2MyVUr5eH/aFSg84yD+eC8TX+4kmOq5Ip2tfY9pE8tvgJsHOziG8npnbOITPrOPo+gG9y9JTI0llpoCxMB13+dRXFxxwLBRcbWtoVp1jz+jjL1RKBVbnrkx/8bdGiJ34wS8u1yYv7/9guK9zLpXY3X9SRT7cTm2ESCbzFQKiXbp20H1XX1JqkE+ViJUr2j9PaGsIMPNT9oE3s3GPWKONm1BUPaA0uQfa9dqzoxQAtCJLevCyRB4tjdvKKSc0O4dMRcRl/vf7TdJOo0pjtPjHYf3755w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(396003)(39850400004)(136003)(376002)(346002)(366004)(33656002)(66946007)(64756008)(44832011)(9686003)(66476007)(19627405001)(76116006)(7696005)(66556008)(66446008)(55016002)(5660300002)(6506007)(86362001)(186003)(71200400001)(83380400001)(8936002)(8676002)(4744005)(966005)(6916009)(478600001)(52536014)(2906002)(316002)(166002)(129723003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: YfWFoAxO9lssD7pIIPuXnn/n4qLIuW0+0Mqns/tgv7bLdxq89VzixJKJfIr5mvQgwV9RmOXq20OBEckPnDK8V+D5CCeh0ONgnZ3mzyh9MeGsPgQru+f67Hcmu5UI/MxZmENy8lwBWvLPBYNeCAp7ltMuLIcaYfx90Cv2GdBUjP1/zY5571HyguZlWA0I2oVKtOv684ce2SXEzxeC/DWfR9lCoG0xua7w+wCqiM/Ve2Xg3wpSTQjceQ6wRNX42BQYhcmalJYKa/NUPSTmMgR0buJ15BI4TuJeX3sYGnb++mf2UodjXwICsOgr9lGC+YONffLdua1+stRTyEu+zv++rNRPdFbAi+0iMlYKZGAsBzmhUvfq6A7JkK3ZoYZvxoBgYfO0FhlTJ9k454t9iEdqvRXIt0pYWoYiwCZbRL88XOmU7jj7KvWceyhDSyJ/O+CEIfg0uM6FTOBVd9XASbL/JsjD7CHz3V9+7Z/8eIx7Rp3x3mvqNZpnepPLTbEU8VfNblXAXYpS2k/xoMZyILUhLvsvP8/TMBi/yRYV5Mh0pbZ3Mr+EGmiKqAiouATVp/a+IbqZtABgVYPf1iuBFPTBzsD71rlF2a6UtuJ0jn/8ezQ0hnv6Ix3uYSMMqeJHwPK8tk6B2C/kYnVVWXqiPr7HfjPxPVgnNLYo+we/44xI94oNShLKumCGae2C9siQpfPf5qBbK8HMU6g17psV+iJxIQ== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_MAXPR01MB36478D4B42FF07E5657B068C96190MAXPR01MB3647INDP_" MIME-Version: 1.0 X-OriginatorOrg: Xius.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MAXPR01MB3647.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 30f845ce-e895-4b79-bdf5-08d8799c3a37 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2020 10:45:17.0246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e32b57-c2cb-4cfb-9748-dc0a0bc1150a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9dgsh0VOOwGTVoEDVPMfJ8KCJdQBAo8EiqgHD/PSSMLindUzehYr3T956mpKdPCa59/ookgTD+GVawjv1hERyuUxomY6NULlF1FToKPwaQ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MAXPR01MB4215 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_MAXPR01MB36478D4B42FF07E5657B068C96190MAXPR01MB3647INDP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Team, i am facing the problem in passing the outparameters in postgres package ca= lling 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_networ= kserver_pr_sp_apply_sl_yn('%s','%s','%s', %d ,%d)",m_h_imsi.arr,m_h_hlraddr= ess.arr,m_h_vlraddress.arr,m_ht_message,m_ht_msgType,allow_yn,po_ns_relay_r= eason,po_sl_relay_reason); res =3D PQexec(con,buffer); if (PQresultStatus(res) !=3D PGRES_TUPLES_OK) { printf("No data retrieved\n"); PQclear(res); PQfinish(con); exit(1); } printf("allow_yn=3D=3D=3D%d\tpo_ns_relay_reason=3D=3D%d\tpo_sl_relay_reason= =3D=3D%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 http://www.xius.com --_000_MAXPR01MB36478D4B42FF07E5657B068C96190MAXPR01MB3647INDP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Team,

i am facing the problem in passing the outparameters in postgres package ca= lling 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,al= low_yn,po_ns_relay_reason,po_sl_relay_reason);

         res =3D PQexec(con,buffer);
         if (PQresultStatus(res) !=3D PGRES_T= UPLES_OK) {

                printf("N= o data retrieved\n");
                PQclear(res);<= /div>
                PQfinish(con);=
                exit(1);
                }



printf("allow_yn=3D=3D=3D%d\tpo_ns_relay_reason=3D=3D%d\tpo_sl_re= lay_reason=3D=3D%s\n",allow_yn,po_ns_relay_reason,po_sl_relay_reason.a= rr);




<= /font>
Thanks <= b>& Regards,
Mahesh Bodepati
Software Engineer- Engineering
XIUS
--_000_MAXPR01MB36478D4B42FF07E5657B068C96190MAXPR01MB3647INDP_--