Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B6D5DEF4 for ; Wed, 19 Sep 2012 04:07:11 +0000 (UTC) Received: (qmail 37659 invoked by uid 500); 19 Sep 2012 04:07:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37435 invoked by uid 500); 19 Sep 2012 04:07:09 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 37386 invoked by uid 99); 19 Sep 2012 04:07:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 04:07:07 +0000 Date: Wed, 19 Sep 2012 15:07:07 +1100 (NCT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: <658346739.95757.1348027627701.JavaMail.jiratomcat@arcas> In-Reply-To: <676330252.36546.1329230640188.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5614) NullPointerException with INSERT INTO [global temporary table] SELECT ... FROM [VTI] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458395#comment-13458395 ] Mamta A. Satoor commented on DERBY-5614: ---------------------------------------- I will look into backporting this to 10.6 > NullPointerException with INSERT INTO [global temporary table] SELECT ... FROM [VTI] > ------------------------------------------------------------------------------------ > > Key: DERBY-5614 > URL: https://issues.apache.org/jira/browse/DERBY-5614 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.7.1.1, 10.8.2.2, 10.9.1.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Labels: derby_triage10_9 > Fix For: 10.7.1.4, 10.8.2.3, 10.9.1.0 > > Attachments: derby-5614-1a-disable_bulkinsert_gtt.diff, derby-5614-1b-disable_bulkinsert_gtt.diff, repro.sql > > > Inserting into a global temporary table (GTT) while selecting data from a VTI fails with a NullPointerException: > Caused by: java.lang.NullPointerException > at org.apache.derby.impl.sql.execute.WriteCursorConstantAction.getEmptyHeapRow(WriteCursorConstantAction.java:324) > at org.apache.derby.impl.sql.execute.InsertResultSet.bulkInsertCore(InsertResultSet.java:1209) > at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:466) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:443) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:324) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1242) > ... 6 more > Investigation exposed the fact that bulk insert doesn't support a GTT as the target, and further that Derby enables bulk insert when the source is a VTI. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira