Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 26590 invoked from network); 1 Oct 2010 08:26:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 08:26:00 -0000 Received: (qmail 25139 invoked by uid 500); 1 Oct 2010 08:26:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24965 invoked by uid 500); 1 Oct 2010 08:25:58 -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 24958 invoked by uid 99); 1 Oct 2010 08:25:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 08:25:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 08:25:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o918PWiU016117 for ; Fri, 1 Oct 2010 08:25:33 GMT Message-ID: <32251612.493741285921532860.JavaMail.jira@thor> Date: Fri, 1 Oct 2010 04:25:32 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4828) Import fails if column names contain double quotes In-Reply-To: <24182454.493721285921294389.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-4828: -------------------------------------- Attachment: test.diff Attached a test case that demonstrates the bug. If you apply the patch and run ImportExportTest, you'll see this error: 1) testQuotesInColumnNames(org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest)java.sql.SQLException: The exception 'java.sql.SQLException: Syntax error: Encountered ":" at line 1, column 66.' was thrown while evaluating an expression. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:95) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142) at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:278) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:398) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:346) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2269) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:81) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1321) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1680) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(EmbedPreparedStatement.java:1335) at org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest.doImportFromFile(ImportExportTest.java:323) > Import fails if column names contain double quotes > -------------------------------------------------- > > Key: DERBY-4828 > URL: https://issues.apache.org/jira/browse/DERBY-4828 > Project: Derby > Issue Type: Bug > Components: Tools > Affects Versions: 10.7.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: test.diff > > > If the target table for an import operation contains columns with double quotes in their names, the import will fail with a syntax error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.