Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjToS-0006gr-Im for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Oct 2014 14:01:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjToR-0007wJ-Um for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Oct 2014 14:01:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjQGT-0007tL-Tl for pgsql-bugs@postgresql.org; Wed, 29 Oct 2014 10:14:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjQGQ-0002XD-Mx for pgsql-bugs@postgresql.org; Wed, 29 Oct 2014 10:14:04 +0000 MIME-Version: 1.0 Subject: BUG #11822: ECPG Commit or Rollback error To: pgsql-bugs@postgresql.org From: jlsanz1983@gmail.com Date: Wed, 29 Oct 2014 10:13:20 +0000 Message-ID: <20141029101320.2596.63082@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.1 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11822 Logged by: jls1983 Email address: jlsanz1983@gmail.com PostgreSQL version: Unsupported/Unknown Operating system: CentOs 6.2 Description: I use a 8.2 version of postgres, and get and solve the following mistake in a pgc program: Hi when a cursor is open and a fetch is in progres if then uses a commit or rollback instruction before close the cursor. The cursor get this error: ==== sqlca ==== sqlcode: -400 sqlerrm.sqlerrml: 44 sqlerrm.sqlerrmc: cursor "bolas" does not exist on line 141 sqlerrd: 0 0 0 0 0 0 sqlwarn: 0 0 0 0 0 0 0 0 sqlstate: 34000 =============== If the commit goes after close the cursor then the execution doesn't return any error. Sorry about my english. Best regards. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs