You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Selvaganesan Govindarajan (JIRA)" <ji...@apache.org> on 2016/05/04 02:40:12 UTC
[jira] [Assigned] (TRAFODION-532) LP Bug: 1355038 - SPJ w result
set failed with ERROR[8841]
[ https://issues.apache.org/jira/browse/TRAFODION-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Selvaganesan Govindarajan reassigned TRAFODION-532:
---------------------------------------------------
Assignee: Kevin Xu (was: Selvaganesan Govindarajan)
Kevin,
This JIRA was assigned to me long ago. Will you be able to work on this?
> LP Bug: 1355038 - SPJ w result set failed with ERROR[8841]
> ----------------------------------------------------------
>
> Key: TRAFODION-532
> URL: https://issues.apache.org/jira/browse/TRAFODION-532
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-exe
> Reporter: Chong Hsu
> Assignee: Kevin Xu
> Priority: Critical
> Fix For: 1.0 (pre-incubation)
>
>
> SPJ w result set failed with ERROR[8841]
> Tested with Trafodion build, 20140801-0830.
> Calling a SPJ with result set:
> public static void RS292(ResultSet[] paramArrayOfResultSet) throws Exception
> {
> String str = "jdbc:default:connection";
>
> Connection localConnection = DriverManager.getConnection(str);
> Statement localStatement = localConnection.createStatement();
> paramArrayOfResultSet[0] = localStatement.executeQuery("select * from(delete from testtab where e_code>20000 return old.*) as t1");
> }
> it failed with ERROR[8841]:
> *** ERROR[8841] User application committed or aborted a transaction started by SQL. This transaction needs to be committed or aborted by calling SQL COMMIT or ROLLBACK WORK. [2014-08-11 04:30:14]
> The SPJ Jar file is attached. Here are the steps to produce the error:
>
> set schema testspj;
> create library spjrs file '/<Jar location>/Testrs.jar';
> create procedure RS292()
> language java parameter style java
> library spjrs
> dynamic result sets 3
> external name 'Testrs.RS292';
> Call RS292();
> *** ERROR[8841] User application committed or aborted a transaction started by SQL. This transaction needs to be committed or aborted by calling SQL COMMIT or ROLLBACK WORK. [2014-08-11 04:30:14]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)