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 1oTr53-00028p-QB for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 20:46:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTr51-0002lB-Su for pgsql-general@arkaria.postgresql.org; Thu, 01 Sep 2022 20:46:27 +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 1oTr50-0002l2-Ay for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 20:46:27 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTr4w-0003QC-AI for pgsql-general@lists.postgresql.org; Thu, 01 Sep 2022 20:46:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1DFA95C0160; Thu, 1 Sep 2022 16:46:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 01 Sep 2022 16:46:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1662065179; x= 1662151579; bh=UoF/BSvqo08aaJWGIOCoMozfZv77p3njo9qtFuId1+Q=; b=G oygDZeoDnk3FvJi/5PunwGWSdzjyf2TMs2c8CmlAqNaTU6REWFZlHGzN06xoO6gl BhdP7VrQ+58rO5Zdqw0Cmtfuhn1P40e0eG1Sg4WNruAZsg3eusmUnMu/U2jif5+r RblQAgyL8zbQodoDQtyCVE8DnpBQ/xXq4Rd0Zs9ioqe4KF5yls1ks0X3vH2c1a1F jooAdhePiLhZByPaHSd+32kkydN25ylN/wKBinmtoJ/IiwRnSvqqodiWx1JUTZpN U1s9Kf5rfSv8RzpJYcR+/aF6P5f3xulK/LIHCEqrqixdfrCPDWf52q2AMdoFWyEl NGtKSN+9aQGAD9G+nWZKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1662065179; x=1662151579; bh=U oF/BSvqo08aaJWGIOCoMozfZv77p3njo9qtFuId1+Q=; b=PVyKduw6CkR2IG2Z+ G/0LNu0M1g5gvmXztvcAzTUAjBqVy4WOQJEv8SolzExhfPD7q8jI8JSnpq67IZ2Z 22V99Wfv5oRToVJGI2GVnmYLn7r/airdtPybmKvs6Ixxb7df3cT3WqQb+O7NehrM eWBBBEWcSp7zfoLaT0zBqpQ+Ifzf5JRC6WgYnueg0gpqk3NMqACuCVFYaHK+qvG1 6AiEgR8+ZfviJ2Q6nyvTsw5sxXvnZvEqu9uVLkvxwZps1qxylW5zbHEHNbI/6OIO oR/HPc2VzH4WRmCeTRhBz2eRzi8xKK78FOBd8XVs46UY2KLjPks24OxrHXQFTjmx I8bgw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekkedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeehnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepvdekhfehhfelkeejueeuleehvdegjeefheelffet hfdtfefffeegteffgfehfeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Sep 2022 16:46:18 -0400 (EDT) Subject: Re: Bind Parameter is Too Big To: "Kluzak, Matthew C." , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <32c5f273-65a1-09aa-b553-df5b86efda5c@aklaver.com> Date: Thu, 1 Sep 2022 13:46:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/1/22 1:34 PM, Kluzak, Matthew C. wrote: > I support a system where staff use a PowerBuilder 2019R3 app that enters > data into a Postgres 12 database, generates SQL statements for the data > and saves them as text files. Staff uses another PB2019R3 app to > populate a Sybase ASE 15.7 database with the generated SQL statement > files. Other staff then uses a PB2019R3 app to pipe the data to a master > Sybase ASE 15.7 database. At the beginning of each week that data is > piped via PB2019R3 app to another Sybase ASE 15.7 database. The > inspectors then update their Postgres database with all inspectors' data > via another PB2019R3 app that pipes the data from Sybase to Postgres. > > * Yes, I understand how absurd the system is. I just inherited it and > am supporting it until we can replace it. The .gov domain was explanation enough. > However, when trying to pipe the data from Sybase to Postgres > I get the error "Bind Parameter for value :9 is Too Big (2000)." The > comment column is the 9th column. > > I checked the data and verified it isn't over the 1000 character limit. > I tried deleting out 13 of the 1000 characters, and the error this time > was "Bind Parameter for value :9 is Too Big (1976)." What is the actual code that pipes the data? What is the encoding/character set in Sybase vs Postgres? > > Via Appeon’s support forums I worked out getting the pipe to work in the > PowerBuilder IDE by enabling staticbind and disablebind. In this view, I > can get a connection string to use in the app’s configuration file. > However, using this connection string in the app’s configuration file > still doesn’t work when running the pipe in the app. > > Connection string is: > DBParm=ConnectString='DSN=WM_LT_User;UID=user;PWD=password',PBCatalogOwner='user',DelimitIdentifier='Yes',DisableBind=1 > > Appeon is claiming it is a Postgres issue and so I am inquiring here. I > am hoping someone can help steer me in the right direction to get this > pipe working. > > Thanks > > Matt Kluzak > > Technology Director > > North Dakota Public Service Commission > > 600 E Boulevard Ave > > Dept 408 13^th Floor > > Bismarck, ND  58505-0480 > > Phone: 701-328-4075 > > > ------------------------------------------------------------------------ > This transmission, email and any files transmitted with it, may be: (1) > subject to the Attorney-Client Privilege, (2) an attorney work product, > or (3) strictly confidential under federal or state law. If you are not > the intended recipient of this message, you may not use, disclose, > print, copy or disseminate this information. If you have received this > transmission in error, notify the sender (only) and delete the message. > This message may also be subject to disclosure under the North Dakota > Open Records Laws. > -- Adrian Klaver adrian.klaver@aklaver.com